HomeSort by: relevance | last modified time | path
    Searched defs:evp_ctx (Results 1 - 6 of 6) sorted by relevancy

  /src/crypto/external/bsd/openssl/dist/crypto/crmf/
crmf_lib.c 614 EVP_CIPHER_CTX *evp_ctx = NULL; /* context for symmetric encryption */ local
688 || (evp_ctx = EVP_CIPHER_CTX_new()) == NULL)
690 EVP_CIPHER_CTX_set_padding(evp_ctx, 0);
692 if (!EVP_DecryptInit(evp_ctx, cipher, ek, iv)
693 || !EVP_DecryptUpdate(evp_ctx, outbuf, &outlen,
696 || !EVP_DecryptFinal(evp_ctx, outbuf + outlen, &n)) {
710 EVP_CIPHER_CTX_free(evp_ctx);
  /src/crypto/external/apache2/openssl/dist/crypto/crmf/
crmf_lib.c 763 EVP_CIPHER_CTX *evp_ctx = NULL; /* context for symmetric encryption */ local
833 || (evp_ctx = EVP_CIPHER_CTX_new()) == NULL)
835 EVP_CIPHER_CTX_set_padding(evp_ctx, 0);
837 if (!EVP_DecryptInit(evp_ctx, cipher, ek, iv)
838 || !EVP_DecryptUpdate(evp_ctx, out, outlen,
841 || !EVP_DecryptFinal(evp_ctx, out + *outlen, &n)) {
850 EVP_CIPHER_CTX_free(evp_ctx);
  /src/crypto/external/bsd/openssl/dist/crypto/pkcs7/
pk7_doit.c 405 EVP_CIPHER_CTX *evp_ctx = NULL; local
595 evp_ctx = NULL;
596 BIO_get_cipher_ctx(etmp, &evp_ctx);
597 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0)
599 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0)
602 len = EVP_CIPHER_CTX_get_key_length(evp_ctx);
609 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0)
617 if (eklen != EVP_CIPHER_CTX_get_key_length(evp_ctx)) {
623 if (EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen) <= 0) {
633 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/crypto/pkcs7/
pk7_doit.c 367 EVP_CIPHER_CTX *evp_ctx = NULL; local
517 evp_ctx = NULL;
518 BIO_get_cipher_ctx(etmp, &evp_ctx);
519 if (EVP_CipherInit_ex(evp_ctx, evp_cipher, NULL, NULL, NULL, 0) <= 0)
521 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) < 0)
524 tkeylen = EVP_CIPHER_CTX_key_length(evp_ctx);
528 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0)
536 if (eklen != EVP_CIPHER_CTX_key_length(evp_ctx)) {
542 if (!EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen)) {
552 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/pkcs7/
pk7_doit.c 447 EVP_CIPHER_CTX *evp_ctx = NULL; local
638 evp_ctx = NULL;
639 BIO_get_cipher_ctx(etmp, &evp_ctx);
640 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0)
642 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0)
645 len = EVP_CIPHER_CTX_get_key_length(evp_ctx);
652 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0)
660 if (eklen != EVP_CIPHER_CTX_get_key_length(evp_ctx)) {
666 if (EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen) <= 0) {
676 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0
    [all...]
  /src/crypto/external/bsd/libsaslc/dist/src/
mech_digestmd5.c 195 EVP_CIPHER_CTX *evp_ctx; /* openssl EVP context */ member in struct:cipher_context_t
945 if (ctx->evp_ctx != NULL)
946 EVP_CIPHER_CTX_free(ctx->evp_ctx);
1071 ctx->evp_ctx = EVP_CIPHER_CTX_new();
1072 if (ctx->evp_ctx == NULL) {
1076 if (EVP_CipherInit_ex(ctx->evp_ctx, ctp->evp_type(), NULL, NULL, NULL,
1081 if (EVP_CIPHER_CTX_set_padding(ctx->evp_ctx, 0) == 0) {
1091 rv = EVP_CIPHER_CTX_set_key_length(ctx->evp_ctx,
1114 if (EVP_CipherInit_ex(ctx->evp_ctx, NULL, NULL, key, ivp, do_enc) == 0) {
1189 rv = EVP_CipherUpdate(ctx->evp_ctx, out, &outl, in, (int)inlen)
    [all...]

Completed in 31 milliseconds