Lines Matching +full:no +full:- +full:rc4

1 /*	$NetBSD: evp-cc.c,v 1.3 2023/06/19 21:41:43 christos Exp $	*/
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
55 #include <evp-hcrypto.h>
56 #include <evp-cc.h>
74 struct cc_key *cc = ctx->cipher_data; in cc_do_cipher()
80 ret = CCCryptorUpdate(cc->href, in, size, out, size, &moved); in cc_do_cipher()
93 struct cc_key *cc = ctx->cipher_data; in cc_cleanup()
94 if (cc->href) in cc_cleanup()
95 CCCryptorRelease(cc->href); in cc_cleanup()
146 struct cc_key *cc = ctx->cipher_data; in cc_des_ede3_cbc_init()
147 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithm3DES, in cc_des_ede3_cbc_init()
148 key, kCCKeySize3DES, iv, &cc->href); in cc_des_ede3_cbc_init()
156 * @return the DES-EDE3-CBC EVP_CIPHER pointer.
199 struct cc_key *cc = ctx->cipher_data; in cc_des_cbc_init()
200 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithmDES, in cc_des_cbc_init()
201 key, kCCBlockSizeDES, iv, &cc->href); in cc_des_cbc_init()
208 * @return the DES-CBC EVP_CIPHER pointer.
251 struct cc_key *cc = ctx->cipher_data; in cc_aes_cbc_init()
252 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithmAES128, in cc_aes_cbc_init()
253 key, ctx->cipher->key_len, iv, &cc->href); in cc_aes_cbc_init()
258 * The AES-128 cipher type (Apple CommonCrypto provider)
260 * @return the AES-128-CBC EVP_CIPHER pointer.
293 * The AES-192 cipher type (Apple CommonCrypto provider)
295 * @return the AES-192-CBC EVP_CIPHER pointer.
328 * The AES-256 cipher type (Apple CommonCrypto provider)
330 * @return the AES-256-CBC EVP_CIPHER pointer.
373 struct cc_key *cc = ctx->cipher_data; in cc_aes_cfb8_init()
374 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithmAES128, in cc_aes_cfb8_init()
375 key, ctx->cipher->key_len, NULL, &cc->href); in cc_aes_cfb8_init()
380 * The AES-128 CFB8 cipher type (Apple CommonCrypto provider)
382 * @return the AES-128-CFB8 EVP_CIPHER pointer.
415 * The AES-192 CFB8 cipher type (Apple CommonCrypto provider)
417 * @return the AES-192-CFB8 EVP_CIPHER pointer.
450 * The AES-256 CFB8 cipher type (Apple CommonCrypto provider)
452 * @return the AES-256-CFB8 EVP_CIPHER pointer.
495 struct cc_key *cc = ctx->cipher_data; in cc_rc2_cbc_init()
496 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithmRC2, in cc_rc2_cbc_init()
497 key, ctx->cipher->key_len, iv, &cc->href); in cc_rc2_cbc_init()
502 * The RC2 cipher type - common crypto
538 * The RC2-40 cipher type - common crypto
540 * @return the RC2-40 EVP_CIPHER pointer.
575 * The RC2-64 cipher type - common crypto
577 * @return the RC2-64 EVP_CIPHER pointer.
774 * The Camellia-128 cipher type - CommonCrypto
776 * @return the Camellia-128 EVP_CIPHER pointer.
792 * The Camellia-198 cipher type - CommonCrypto
794 * @return the Camellia-198 EVP_CIPHER pointer.
810 * The Camellia-256 cipher type - CommonCrypto
812 * @return the Camellia-256 EVP_CIPHER pointer.
839 struct cc_key *cc = ctx->cipher_data; in cc_rc4_init()
840 return init_cc_key(encp, ctx->cipher->flags, kCCAlgorithmRC4, in cc_rc4_init()
841 key, ctx->key_len, iv, &cc->href); in cc_rc4_init()
848 * The RC4 cipher type (Apple CommonCrypto provider)
850 * @return the RC4 EVP_CIPHER pointer.
859 static const EVP_CIPHER rc4 = { in EVP_cc_rc4() local
874 return &rc4; in EVP_cc_rc4()
884 * The RC4-40 cipher type (Apple CommonCrypto provider)
886 * @return the RC4 EVP_CIPHER pointer.