Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 7 of 7) sorted by relevance

/demos/cipher/
A Dariacbc.c59 EVP_CIPHER *cipher = NULL; in aria_cbc_encrypt() local
72 if ((cipher = EVP_CIPHER_fetch(libctx, "ARIA-256-CBC", propq)) == NULL) in aria_cbc_encrypt()
79 if (!EVP_EncryptInit_ex2(ctx, cipher, cbc_key, cbc_iv, /* params */ NULL)) in aria_cbc_encrypt()
105 EVP_CIPHER_free(cipher); in aria_cbc_encrypt()
115 EVP_CIPHER *cipher = NULL; in aria_cbc_decrypt() local
127 if ((cipher = EVP_CIPHER_fetch(libctx, "ARIA-256-CBC", propq)) == NULL) in aria_cbc_decrypt()
134 if (!EVP_DecryptInit_ex2(ctx, cipher, cbc_key, cbc_iv, /* params */ NULL)) in aria_cbc_decrypt()
160 EVP_CIPHER_free(cipher); in aria_cbc_decrypt()
A Daeskeywrap.c60 EVP_CIPHER *cipher = NULL; in aes_wrap_encrypt() local
75 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-WRAP", propq)) == NULL) in aes_wrap_encrypt()
82 if (!EVP_EncryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL)) in aes_wrap_encrypt()
108 EVP_CIPHER_free(cipher); in aes_wrap_encrypt()
118 EVP_CIPHER *cipher = NULL; in aes_wrap_decrypt() local
132 if ((cipher = EVP_CIPHER_fetch(libctx, "aes-256-wrap", propq)) == NULL) in aes_wrap_decrypt()
139 if (!EVP_DecryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL)) in aes_wrap_decrypt()
165 EVP_CIPHER_free(cipher); in aes_wrap_decrypt()
A Daesgcm.c74 EVP_CIPHER *cipher = NULL; in aes_gcm_encrypt() local
92 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL) in aes_gcm_encrypt()
106 if (!EVP_EncryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params)) in aes_gcm_encrypt()
141 EVP_CIPHER_free(cipher); in aes_gcm_encrypt()
151 EVP_CIPHER *cipher = NULL; in aes_gcm_decrypt() local
167 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL) in aes_gcm_decrypt()
178 if (!EVP_DecryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params)) in aes_gcm_decrypt()
213 EVP_CIPHER_free(cipher); in aes_gcm_decrypt()
A Daesccm.c75 EVP_CIPHER *cipher = NULL; in aes_ccm_encrypt() local
94 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-192-CCM", propq)) == NULL) in aes_ccm_encrypt()
108 if (!EVP_EncryptInit_ex2(ctx, cipher, NULL, NULL, params)) in aes_ccm_encrypt()
152 EVP_CIPHER_free(cipher); in aes_ccm_encrypt()
162 EVP_CIPHER *cipher = NULL; in aes_ccm_decrypt() local
178 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-192-CCM", propq)) == NULL) in aes_ccm_decrypt()
192 if (!EVP_DecryptInit_ex2(ctx, cipher, NULL, NULL, params)) in aes_ccm_decrypt()
223 EVP_CIPHER_free(cipher); in aes_ccm_decrypt()
/demos/
A DMakefile2 cipher \
A Dbuild.info1 SUBDIRS=bio cipher digest keyexch mac kdf pkey signature \
A DREADME.txt14 cipher:
15 aesgcm.c Demonstration of symmetric cipher GCM mode encrypt/decrypt
16 aesccm.c Demonstration of symmetric cipher CCM mode encrypt/decrypt
17 ariacbc.c Demonstration of symmetric cipher CBC mode encrypt/decrypt

Completed in 601 milliseconds