Searched defs:cipher (Results 76 - 100 of 193) sorted by last modified time

12345678

/external/openssl/apps/
H A Denc.c124 const EVP_CIPHER *cipher=NULL,*c; local
154 cipher=EVP_get_cipherbyname(pname);
156 if (!do_zlib && !base64 && (cipher == NULL)
159 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0))
162 BIO_printf(bio_err,"%s is an unknown cipher\n",pname);
292 cipher=c;
295 cipher=NULL;
336 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)
342 if (cipher
[all...]
H A Dgenpkey.c82 const EVP_CIPHER *cipher = NULL; local
180 cipher = EVP_get_cipherbyname(*args + 1);
181 if (!cipher)
183 BIO_printf(bio_err, "Unknown cipher %s\n",
204 BIO_printf(bio_err, "-<cipher> use cipher <cipher> to encrypt the key\n");
269 rv = PEM_write_bio_PrivateKey(out, pkey, cipher, NULL, 0,
H A Dpkcs8.c78 const EVP_CIPHER *cipher = NULL; local
111 cipher=EVP_get_cipherbyname(*args);
112 if (!cipher)
115 "Unknown cipher %s\n", *args);
224 BIO_printf(bio_err, "-v2 alg use PKCS#5 v2.0 and cipher \"alg\"\n");
225 BIO_printf(bio_err, "-v1 obj use PKCS#5 v1.5 and cipher \"alg\"\n");
242 if ((pbe_nid == -1) && !cipher)
311 if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,
H A Dpkey.c75 const EVP_CIPHER *cipher = NULL; local
172 cipher = EVP_get_cipherbyname(*args + 1);
173 if (!cipher)
175 BIO_printf(bio_err, "Unknown cipher %s\n",
246 PEM_write_bio_PrivateKey(out, pkey, cipher,
H A Dreq.c181 const EVP_CIPHER *cipher=NULL; local
199 cipher=EVP_des_ede3_cbc();
746 cipher=NULL;
747 if (nodes) cipher=NULL;
751 if (!PEM_write_bio_PrivateKey(out,pkey,cipher,
H A Ds_client.c344 BIO_printf(bio_err," -serverpref - Use server's cipher preferences (only SSLv2)\n");
345 BIO_printf(bio_err," -cipher - preferred cipher to use, use the 'openssl ciphers'\n");
584 char *CApath=NULL,*CAfile=NULL,*cipher=NULL; local
917 else if (strcmp(*argv,"-cipher") == 0)
920 cipher= *(++argv);
1019 if (cipher)
1021 BIO_printf(bio_err, "JPAKE sets cipher to PSK\n");
1024 cipher = "PSK";
1210 if (cipher !
[all...]
H A Ds_server.c113 * ECC cipher suite support in OpenSSL originally developed by
267 static char *cipher=NULL; variable
429 cipher=NULL;
502 BIO_printf(bio_err," -cipher arg - play with 'openssl ciphers' to see what goes here\n");
503 BIO_printf(bio_err," -serverpref - Use server's cipher preferences\n");
1121 else if (strcmp(*argv,"-cipher") == 0)
1124 cipher= *(++argv);
1384 if (cipher)
1386 BIO_printf(bio_err, "JPAKE sets cipher to PSK\n");
1389 cipher
[all...]
H A Dsmime.c98 const EVP_CIPHER *cipher = NULL; local
152 cipher = EVP_des_ede3_cbc();
154 cipher = EVP_des_cbc();
158 cipher = EVP_seed_cbc();
162 cipher = EVP_rc2_40_cbc();
164 cipher = EVP_rc2_cbc();
166 cipher = EVP_rc2_64_cbc();
170 cipher = EVP_aes_128_cbc();
172 cipher = EVP_aes_192_cbc();
174 cipher
[all...]
/external/openssl/crypto/cmac/
H A Dcmac.c153 const EVP_CIPHER *cipher, ENGINE *impl)
171 return FIPS_cmac_init(ctx, key, keylen, cipher, NULL);
175 if (!key && !cipher && !impl && keylen == 0)
187 if (cipher && !EVP_EncryptInit_ex(&ctx->cctx, cipher, impl, NULL, NULL))
152 CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, const EVP_CIPHER *cipher, ENGINE *impl) argument
/external/openssl/crypto/cms/
H A Dcms.h161 CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,
178 const EVP_CIPHER *cipher, unsigned int flags); variable
193 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);
H A Dcms_enc.c83 enc = ec->cipher ? 1 : 0;
97 ciph = ec->cipher;
98 /* If not keeping key set cipher to NULL so subsequent calls
102 ec->cipher = NULL;
240 const EVP_CIPHER *cipher,
243 ec->cipher = cipher;
252 if (cipher)
291 if (enc->encryptedContentInfo->cipher && enc->unprotectedAttrs)
239 cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen) argument
H A Dcms_env.c120 CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher) argument
131 cipher, NULL, 0))
821 /* If error or no cipher end of processing */
823 if (!ret || !ec->cipher)
865 ec->cipher = NULL;
H A Dcms_lcl.h175 const EVP_CIPHER *cipher; member in struct:CMS_EncryptedContentInfo_st
456 const EVP_CIPHER *cipher,
H A Dcms_smime.c252 CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher, argument
257 if (!cipher)
265 if (!CMS_EncryptedData_set1_key(cms, cipher, key, keylen))
574 const EVP_CIPHER *cipher, unsigned int flags)
579 cms = CMS_EnvelopedData_create(cipher);
/external/openssl/crypto/engine/
H A Deng_cryptodev.c101 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
257 sess.cipher = ciphers[i].id;
298 sess.cipher = 0;
377 if ((inl % ctx->cipher->block_size) != 0)
391 if (ctx->cipher->iv_len) {
394 iiv = in + inl - ctx->cipher->iv_len;
395 memcpy(save_iv, iiv, ctx->cipher->iv_len);
407 if (ctx->cipher->iv_len) {
409 iiv = out + inl - ctx->cipher->iv_len;
412 memcpy(ctx->iv, iiv, ctx->cipher
423 int cipher = -1, i; local
609 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) argument
[all...]
H A Deng_openssl.c113 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
215 * we're asked for a cipher we don't support (should not happen).
218 * TEST_ENG_OPENSSL_RC4_P_CIPHER - ditto for the "cipher" handler.
277 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, argument
280 if(!cipher)
286 /* We are being asked for a specific cipher */
288 *cipher = &test_r4_cipher;
290 *cipher = &test_r4_40_cipher;
297 *cipher = NULL;
/external/openssl/crypto/evp/
H A Dbio_enc.c83 EVP_CIPHER_CTX cipher; member in struct:enc_struct
92 BIO_TYPE_CIPHER,"cipher",
114 EVP_CIPHER_CTX_init(&ctx->cipher);
134 EVP_CIPHER_CTX_cleanup(&(b->cipher));
187 i=EVP_CipherFinal_ex(&(ctx->cipher),
201 EVP_CipherUpdate(&(ctx->cipher),
260 EVP_CipherUpdate(&(ctx->cipher),
301 EVP_CipherInit_ex(&(ctx->cipher),NULL,NULL,NULL,NULL,
302 ctx->cipher.encrypt);
335 ret=EVP_CipherFinal_ex(&(ctx->cipher),
[all...]
H A Devp.h322 /* Values for cipher flags */
336 /* Set if variable length cipher */
338 /* Set if the iv handling should be done by the cipher itself */
340 /* Set if the cipher's init() function should be called if key is NULL */
342 /* Call ctrl() to init cipher parameters */
348 /* cipher handles random key generation */
350 /* cipher has its own additional copying logic */
358 /* Allow non FIPS cipher in FIPS mode */
387 /* AEAD cipher deduces payload length and returns number of bytes
407 const EVP_CIPHER *cipher; member in struct:evp_cipher_info_st
413 const EVP_CIPHER *cipher; member in struct:evp_cipher_ctx_st
[all...]
H A Devp_enc.c76 #define M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl)
85 /* ctx->cipher=NULL; */
96 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, argument
99 if (cipher)
101 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc);
104 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, argument
120 if (ctx->engine && ctx->cipher && (!cipher ||
121 (cipher && (cipher
284 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
290 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
296 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
302 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
[all...]
H A Devp_lib.c68 if (c->cipher->set_asn1_parameters != NULL)
69 ret=c->cipher->set_asn1_parameters(c,type);
70 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1)
81 if (c->cipher->get_asn1_parameters != NULL)
82 ret=c->cipher->get_asn1_parameters(c,type);
83 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1)
122 /* Convert the various cipher NIDs and dummies to a proper OID NID */
188 return ctx->cipher->block_size;
193 return ctx->cipher->do_cipher(ctx,out,in,inl);
198 return ctx->cipher;
201 EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument
221 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument
231 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument
241 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument
[all...]
H A Devp_pbe.c71 /* Setup a cipher context from a PBE algorithm */
158 const EVP_CIPHER *cipher; local
180 cipher = NULL;
183 cipher = EVP_get_cipherbynid(cipher_nid);
184 if (!cipher)
203 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de))
257 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, argument
261 if (cipher)
262 cipher_nid = EVP_CIPHER_nid(cipher);
H A Devp_test.c146 printf("Testing cipher %s%s\n",EVP_CIPHER_name(c),
244 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument
252 c=EVP_get_cipherbyname(cipher);
359 * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if
368 char *cipher; local
378 cipher=sstrsep(&p,":");
396 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec)
397 && !test_digest(cipher,plaintext,pn,ciphertext,cn))
400 if (strstr(cipher, "AES") == cipher)
[all...]
H A Dp5_crpt.c73 ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md,
129 OPENSSL_assert(EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp));
130 memcpy(key, md_tmp, EVP_CIPHER_key_length(cipher));
131 OPENSSL_assert(EVP_CIPHER_iv_length(cipher) <= 16);
132 memcpy(iv, md_tmp + (16 - EVP_CIPHER_iv_length(cipher)),
133 EVP_CIPHER_iv_length(cipher));
134 if (!EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de))
72 PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) argument
H A Dp5_crpt2.c201 const EVP_CIPHER *cipher; local
229 cipher = EVP_get_cipherbyobj(pbe2->encryption->algorithm);
231 if(!cipher) {
237 /* Fixup cipher based on AlgorithmIdentifier */
238 if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, en_de))
/external/openssl/crypto/krb5/
H A Dkrb5_asn.h79 ** cipher[2] OCTET STRING -- ciphertext
86 ASN1_OCTET_STRING *cipher; member in struct:krb5_encdata_st

Completed in 196 milliseconds

12345678