Home
last modified time | relevance | path

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

12345678910>>...13

/netbsd/src/crypto/external/bsd/openssl/dist/crypto/evp/
Dcmeth_lib.c25 EVP_CIPHER *cipher = evp_cipher_new(); in EVP_CIPHER_meth_new() local
27 if (cipher != NULL) { in EVP_CIPHER_meth_new()
28 cipher->nid = cipher_type; in EVP_CIPHER_meth_new()
29 cipher->block_size = block_size; in EVP_CIPHER_meth_new()
30 cipher->key_len = key_len; in EVP_CIPHER_meth_new()
31 cipher->origin = EVP_ORIG_METH; in EVP_CIPHER_meth_new()
33 return cipher; in EVP_CIPHER_meth_new()
36 EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) in EVP_CIPHER_meth_dup() argument
44 if (cipher->prov != NULL) in EVP_CIPHER_meth_dup()
47 if ((to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, in EVP_CIPHER_meth_dup()
[all …]
Devp_enc.c35 if (ctx->cipher == NULL || ctx->cipher->prov == NULL) in EVP_CIPHER_CTX_reset()
39 if (ctx->cipher->freectx != NULL) in EVP_CIPHER_CTX_reset()
40 ctx->cipher->freectx(ctx->algctx); in EVP_CIPHER_CTX_reset()
53 if (ctx->cipher != NULL) { in EVP_CIPHER_CTX_reset()
54 if (ctx->cipher->cleanup && !ctx->cipher->cleanup(ctx)) in EVP_CIPHER_CTX_reset()
57 if (ctx->cipher_data && ctx->cipher->ctx_size) in EVP_CIPHER_CTX_reset()
58 OPENSSL_cleanse(ctx->cipher_data, ctx->cipher->ctx_size); in EVP_CIPHER_CTX_reset()
83 const EVP_CIPHER *cipher, in evp_cipher_init_internal() argument
108 if (cipher == NULL && ctx->cipher == NULL) { in evp_cipher_init_internal()
122 if (ctx->engine && ctx->cipher in evp_cipher_init_internal()
[all …]
Dasymcipher.c25 EVP_ASYM_CIPHER *cipher = NULL; in evp_pkey_asym_cipher_init() local
93 EVP_ASYM_CIPHER_free(cipher); in evp_pkey_asym_cipher_init()
98 cipher = EVP_ASYM_CIPHER_fetch(ctx->libctx, supported_ciph, in evp_pkey_asym_cipher_init()
100 if (cipher != NULL) in evp_pkey_asym_cipher_init()
101 tmp_prov = EVP_ASYM_CIPHER_get0_provider(cipher); in evp_pkey_asym_cipher_init()
105 cipher = in evp_pkey_asym_cipher_init()
108 if (cipher == NULL) in evp_pkey_asym_cipher_init()
112 if (cipher == NULL) in evp_pkey_asym_cipher_init()
136 EVP_ASYM_CIPHER_free(cipher); in evp_pkey_asym_cipher_init()
144 ctx->op.ciph.cipher = cipher; in evp_pkey_asym_cipher_init()
[all …]
Devp_lib.c84 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_param_to_asn1_ex() local
102 if (cipher->set_asn1_parameters != NULL) { in evp_cipher_param_to_asn1_ex()
103 ret = cipher->set_asn1_parameters(c, type); in evp_cipher_param_to_asn1_ex()
104 } else if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_CUSTOM_ASN1) == 0) { in evp_cipher_param_to_asn1_ex()
105 switch (EVP_CIPHER_get_mode(cipher)) { in evp_cipher_param_to_asn1_ex()
107 if (EVP_CIPHER_is_a(cipher, SN_id_smime_alg_CMS3DESwrap)) in evp_cipher_param_to_asn1_ex()
125 } else if (cipher->prov != NULL) { in evp_cipher_param_to_asn1_ex()
175 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_asn1_to_param_ex() local
193 if (cipher->get_asn1_parameters != NULL) { in evp_cipher_asn1_to_param_ex()
194 ret = cipher->get_asn1_parameters(c, type); in evp_cipher_asn1_to_param_ex()
[all …]
Dbio_enc.c35 EVP_CIPHER_CTX *cipher; member
73 ctx->cipher = EVP_CIPHER_CTX_new(); in enc_new()
74 if (ctx->cipher == NULL) { in enc_new()
98 EVP_CIPHER_CTX_free(b->cipher); in enc_free()
136 blocksize = EVP_CIPHER_CTX_get_block_size(ctx->cipher); in enc_read()
162 i = EVP_CipherFinal_ex(ctx->cipher, in enc_read()
179 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
197 if (!EVP_CipherUpdate(ctx->cipher, in enc_read()
266 if (!EVP_CipherUpdate(ctx->cipher, in enc_write()
313 if (!EVP_CipherInit_ex(ctx->cipher, NULL, NULL, NULL, NULL, in enc_ctrl()
[all …]
/netbsd/src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/rijndael/
Drijndael-api-fst.c79 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) { in rijndael_cipherInit() argument
81 cipher->mode = mode; in rijndael_cipherInit()
86 bcopy(IV, cipher->IV, MAX_IV_SIZE); in rijndael_cipherInit()
88 bzero(cipher->IV, MAX_IV_SIZE); in rijndael_cipherInit()
93 int rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key, in rijndael_blockEncrypt() argument
98 if (cipher == NULL || in rijndael_blockEncrypt()
109 switch (cipher->mode) { in rijndael_blockEncrypt()
120 bcopy(cipher->IV, block, 16); in rijndael_blockEncrypt()
127 ((word32*)block)[0] = ((word32*)cipher->IV)[0] ^ ((word32*)input)[0]; in rijndael_blockEncrypt()
128 ((word32*)block)[1] = ((word32*)cipher->IV)[1] ^ ((word32*)input)[1]; in rijndael_blockEncrypt()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/engine/
Deng_openssl.c67 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
234 EVP_CIPHER *cipher; in test_r4_cipher() local
236 if ((cipher = EVP_CIPHER_meth_new(NID_rc4, 1, TEST_RC4_KEY_SIZE)) == NULL in test_r4_cipher()
237 || !EVP_CIPHER_meth_set_iv_length(cipher, 0) in test_r4_cipher()
238 || !EVP_CIPHER_meth_set_flags(cipher, EVP_CIPH_VARIABLE_LENGTH) in test_r4_cipher()
239 || !EVP_CIPHER_meth_set_init(cipher, test_rc4_init_key) in test_r4_cipher()
240 || !EVP_CIPHER_meth_set_do_cipher(cipher, test_rc4_cipher) in test_r4_cipher()
241 || !EVP_CIPHER_meth_set_impl_ctx_size(cipher, sizeof(TEST_RC4_KEY))) { in test_r4_cipher()
242 EVP_CIPHER_meth_free(cipher); in test_r4_cipher()
243 cipher = NULL; in test_r4_cipher()
[all …]
/netbsd/src/crypto/external/bsd/openssh/dist/
Dcipher.c95 const struct sshcipher *cipher; member
268 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
275 cipher_init(struct sshcipher_ctx **ccp, const struct sshcipher *cipher, in cipher_init() argument
290 cc->plaintext = (cipher->flags & CFLAG_NONE) != 0; in cipher_init()
293 if (keylen < cipher->key_len || in cipher_init()
294 (iv != NULL && ivlen < cipher_ivlen(cipher))) { in cipher_init()
299 cc->cipher = cipher; in cipher_init()
300 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_init()
305 if ((cc->cipher->flags & CFLAG_NONE) != 0) { in cipher_init()
310 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_init()
[all …]
/netbsd/src/crypto/external/cpl/trousers/dist/src/trspi/crypto/openssl/
Dsymmetric.c141 EVP_CIPHER *cipher = NULL; in get_openssl_cipher() local
152 cipher = (EVP_CIPHER *)EVP_aes_128_cbc(); in get_openssl_cipher()
155 cipher = (EVP_CIPHER *)EVP_aes_128_ofb(); in get_openssl_cipher()
172 cipher = (EVP_CIPHER *)EVP_des_cbc(); in get_openssl_cipher()
175 cipher = (EVP_CIPHER *)EVP_des_ofb(); in get_openssl_cipher()
192 cipher = (EVP_CIPHER *)EVP_des_ede3_cbc(); in get_openssl_cipher()
195 cipher = (EVP_CIPHER *)EVP_des_ede3_ofb(); in get_openssl_cipher()
212 cipher = (EVP_CIPHER *)EVP_aes_192_cbc(); in get_openssl_cipher()
215 cipher = (EVP_CIPHER *)EVP_aes_192_ofb(); in get_openssl_cipher()
232 cipher = (EVP_CIPHER *)EVP_aes_256_cbc(); in get_openssl_cipher()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/cms/
Dcms_enc.c31 const EVP_CIPHER *cipher = NULL; in ossl_cms_EncryptedContent_init_bio() local
44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio()
63 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio()
65 if (cipher != NULL) { in ossl_cms_EncryptedContent_init_bio()
66 fetched_ciph = EVP_CIPHER_fetch(libctx, EVP_CIPHER_get0_name(cipher), in ossl_cms_EncryptedContent_init_bio()
69 cipher = fetched_ciph; in ossl_cms_EncryptedContent_init_bio()
71 if (cipher == NULL) { in ossl_cms_EncryptedContent_init_bio()
78 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio()
[all …]
/netbsd/src/external/bsd/ppp/dist/pppd/
Dcrypto.c119 if (ctx->cipher.clean_fn) { in PPP_CIPHER_CTX_free()
120 ctx->cipher.clean_fn(ctx); in PPP_CIPHER_CTX_free()
128 int PPP_CipherInit(PPP_CIPHER_CTX *ctx, const PPP_CIPHER *cipher, const unsigned char *key, const u… in PPP_CipherInit() argument
131 if (ctx && cipher) { in PPP_CipherInit()
134 ctx->cipher = *cipher; in PPP_CipherInit()
135 if (ctx->cipher.init_fn) { in PPP_CipherInit()
136 ret = ctx->cipher.init_fn(ctx, key, iv); in PPP_CipherInit()
148 if (ctx && ctx->cipher.update_fn) { in PPP_CipherUpdate()
149 ret = ctx->cipher.update_fn(ctx, out, outl, in, inl); in PPP_CipherUpdate()
160 if (ctx && ctx->cipher.final_fn) { in PPP_CipherFinal()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dafalgtest.c31 const EVP_CIPHER *cipher; in test_afalg_aes_cbc() local
68 cipher = EVP_aes_128_cbc(); in test_afalg_aes_cbc()
72 cipher = EVP_aes_192_cbc(); in test_afalg_aes_cbc()
76 cipher = EVP_aes_256_cbc(); in test_afalg_aes_cbc()
80 cipher = NULL; in test_afalg_aes_cbc()
85 if (!TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)) in test_afalg_aes_cbc()
95 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0)) in test_afalg_aes_cbc()
115 const EVP_CIPHER * cipher; in test_pr16743() local
120 cipher = ENGINE_get_cipher(e, NID_aes_128_cbc); in test_pr16743()
122 if (cipher != NULL && ctx != NULL) in test_pr16743()
[all …]
Devp_fetch_prov_test.c241 static int encrypt_decrypt(const EVP_CIPHER *cipher, const unsigned char *msg, in encrypt_decrypt() argument
251 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, NULL, 1)) in encrypt_decrypt()
254 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, NULL, 0)) in encrypt_decrypt()
266 static int test_cipher(const EVP_CIPHER *cipher) in test_cipher() argument
270 return TEST_ptr(cipher) in test_cipher()
271 && TEST_true(encrypt_decrypt(cipher, testmsg, sizeof(testmsg))); in test_cipher()
290 EVP_CIPHER *cipher = NULL; in test_explicit_EVP_CIPHER_fetch() local
297 cipher = EVP_CIPHER_fetch(ctx, id, fetch_property); in test_explicit_EVP_CIPHER_fetch()
299 if (!test_cipher(cipher)) in test_explicit_EVP_CIPHER_fetch()
302 if (!TEST_true(EVP_CIPHER_up_ref(cipher))) in test_explicit_EVP_CIPHER_fetch()
[all …]
Devp_libctx_test.c318 EVP_CIPHER *cipher = NULL; in test_cipher_reinit() local
347 if (!TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, name, NULL))) in test_cipher_reinit()
351 ccm = (EVP_CIPHER_get_mode(cipher) == EVP_CIPH_CCM_MODE); in test_cipher_reinit()
354 siv = (EVP_CIPHER_get_mode(cipher) == EVP_CIPH_SIV_MODE); in test_cipher_reinit()
360 no_null_key = EVP_CIPHER_is_a(cipher, "RC4") in test_cipher_reinit()
361 || EVP_CIPHER_is_a(cipher, "RC4-40") in test_cipher_reinit()
362 || EVP_CIPHER_is_a(cipher, "RC4-HMAC-MD5"); in test_cipher_reinit()
365 diff = EVP_CIPHER_is_a(cipher, "DES3-WRAP"); in test_cipher_reinit()
367 if (!TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv)) in test_cipher_reinit()
392 EVP_CIPHER_free(cipher); in test_cipher_reinit()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/common/
Dptksa_cache.c138 const u8 *addr, u32 cipher) in ptksa_cache_get() argument
147 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) in ptksa_cache_get()
191 wpa_cipher_txt(e->cipher), in ptksa_cache_list()
233 void ptksa_cache_flush(struct ptksa_cache *ptksa, const u8 *addr, u32 cipher) in ptksa_cache_flush() argument
244 (cipher == WPA_CIPHER_NONE || cipher == e->cipher)) { in ptksa_cache_flush()
278 const u8 *addr, u32 cipher, in ptksa_cache_add() argument
289 if (!ptksa || !ptk || !addr || !life_time || cipher == WPA_CIPHER_NONE) in ptksa_cache_add()
293 ptksa_cache_flush(ptksa, addr, cipher); in ptksa_cache_add()
305 entry->cipher = cipher; in ptksa_cache_add()
340 MAC2STR(addr), cipher); in ptksa_cache_add()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/apps/
Denc.c121 EVP_CIPHER *cipher = NULL; in enc_main() local
287 cipher = NULL; in enc_main()
309 if (!opt_cipher(ciphername, &cipher)) in enc_main()
357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main()
364 EVP_CIPHER_get0_name(cipher), in enc_main()
432 if (cipher != NULL) { in enc_main()
496 int iklen = EVP_CIPHER_get_key_length(cipher); in enc_main()
497 int ivlen = EVP_CIPHER_get_iv_length(cipher); in enc_main()
512 if (!EVP_BytesToKey(cipher, dgst, sptr, in enc_main()
529 int siz = EVP_CIPHER_get_iv_length(cipher); in enc_main()
[all …]
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
Devp.c590 if (c->cipher && c->cipher->cleanup) { in EVP_CIPHER_CTX_cleanup()
591 int ret = c->cipher->cleanup(c); in EVP_CIPHER_CTX_cleanup()
596 if (c->cipher) in EVP_CIPHER_CTX_cleanup()
597 memset(c->cipher_data, 0, c->cipher->ctx_size); in EVP_CIPHER_CTX_cleanup()
618 if ((c->cipher->flags & EVP_CIPH_VARIABLE_LENGTH) && length > 0) { in EVP_CIPHER_CTX_set_key_length()
646 return ctx->cipher; in EVP_CIPHER_CTX_cipher()
662 return EVP_CIPHER_block_size(ctx->cipher); in EVP_CIPHER_CTX_block_size()
678 return EVP_CIPHER_key_length(ctx->cipher); in EVP_CIPHER_CTX_key_length()
694 return EVP_CIPHER_iv_length(ctx->cipher); in EVP_CIPHER_CTX_iv_length()
710 return ctx->cipher->flags; in EVP_CIPHER_CTX_flags()
[all …]
Devp-wincng.c54 ((ctx)->cipher->ctx_size - sizeof(struct wincng_key) + 1)
67 (size % ctx->cipher->block_size) == 0); in wincng_do_cipher()
74 ctx->cipher->iv_len ? ctx->iv : NULL, in wincng_do_cipher()
75 ctx->cipher->iv_len, in wincng_do_cipher()
85 ctx->cipher->iv_len ? ctx->iv : NULL, in wincng_do_cipher()
86 ctx->cipher->iv_len, in wincng_do_cipher()
109 wincng_cipher_algorithm_init(EVP_CIPHER *cipher, in wincng_cipher_algorithm_init() argument
117 if (cipher->app_data) in wincng_cipher_algorithm_init()
138 cipher->ctx_size = sizeof(struct wincng_key) + cbKeyObject - 1; in wincng_cipher_algorithm_init()
140 switch (cipher->flags & EVP_CIPH_MODE) { in wincng_cipher_algorithm_init()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/pkcs12/
Dp12_crpt.c24 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen_ex() argument
34 if (cipher == NULL) in PKCS12_PBE_keyivgen_ex()
52 iter, EVP_CIPHER_get_key_length(cipher), in PKCS12_PBE_keyivgen_ex()
59 if (EVP_CIPHER_get_iv_length(cipher) > 0) { in PKCS12_PBE_keyivgen_ex()
61 iter, EVP_CIPHER_get_iv_length(cipher), in PKCS12_PBE_keyivgen_ex()
72 ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, piv, en_de); in PKCS12_PBE_keyivgen_ex()
79 ASN1_TYPE *param, const EVP_CIPHER *cipher, in PKCS12_PBE_keyivgen() argument
82 return PKCS12_PBE_keyivgen_ex(ctx, pass, passlen, param, cipher, md, en_de, in PKCS12_PBE_keyivgen()
Dp12_p8e.c16 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher, in PKCS8_encrypt_ex() argument
26 if (cipher == NULL) { in PKCS8_encrypt_ex()
30 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, -1, in PKCS8_encrypt_ex()
36 if (cipher == NULL) { in PKCS8_encrypt_ex()
40 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, in PKCS8_encrypt_ex()
60 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, in PKCS8_encrypt() argument
65 return PKCS8_encrypt_ex(pbe_nid, cipher, pass, passlen, salt, saltlen, iter, in PKCS8_encrypt()
/netbsd/src/external/bsd/wpa/dist/src/tls/
Dtlsv1_server.c531 char *cipher; in tlsv1_server_get_cipher() local
535 cipher = "RC4-MD5"; in tlsv1_server_get_cipher()
538 cipher = "RC4-SHA"; in tlsv1_server_get_cipher()
541 cipher = "DES-CBC-SHA"; in tlsv1_server_get_cipher()
544 cipher = "DES-CBC3-SHA"; in tlsv1_server_get_cipher()
547 cipher = "DHE-RSA-DES-CBC-SHA"; in tlsv1_server_get_cipher()
550 cipher = "DHE-RSA-DES-CBC3-SHA"; in tlsv1_server_get_cipher()
553 cipher = "ADH-RC4-MD5"; in tlsv1_server_get_cipher()
556 cipher = "ADH-DES-SHA"; in tlsv1_server_get_cipher()
559 cipher = "ADH-DES-CBC3-SHA"; in tlsv1_server_get_cipher()
[all …]
Dtlsv1_client.c607 char *cipher; in tlsv1_client_get_cipher() local
611 cipher = "RC4-MD5"; in tlsv1_client_get_cipher()
614 cipher = "RC4-SHA"; in tlsv1_client_get_cipher()
617 cipher = "DES-CBC-SHA"; in tlsv1_client_get_cipher()
620 cipher = "DES-CBC3-SHA"; in tlsv1_client_get_cipher()
623 cipher = "DHE-RSA-DES-CBC-SHA"; in tlsv1_client_get_cipher()
626 cipher = "DHE-RSA-DES-CBC3-SHA"; in tlsv1_client_get_cipher()
629 cipher = "ADH-RC4-MD5"; in tlsv1_client_get_cipher()
632 cipher = "ADH-DES-SHA"; in tlsv1_client_get_cipher()
635 cipher = "ADH-DES-CBC3-SHA"; in tlsv1_client_get_cipher()
[all …]
/netbsd/src/sys/net80211/
Dieee80211_crypto.c239 ieee80211_crypto_available(u_int cipher) in ieee80211_crypto_available() argument
241 return cipher < IEEE80211_CIPHER_MAX && ciphers[cipher] != NULL; in ieee80211_crypto_available()
267 ieee80211_crypto_newkey(struct ieee80211com *ic, int cipher, int flags, in ieee80211_crypto_newkey() argument
279 if (cipher >= IEEE80211_CIPHER_MAX) { in ieee80211_crypto_newkey()
281 "%s: invalid cipher %u\n", __func__, cipher); in ieee80211_crypto_newkey()
285 cip = ciphers[cipher]; in ieee80211_crypto_newkey()
294 if (cipher < N(cipher_modnames)) { in ieee80211_crypto_newkey()
297 __func__, cipher, cipher_modnames[cipher]); in ieee80211_crypto_newkey()
298 ieee80211_load_module(cipher_modnames[cipher]); in ieee80211_crypto_newkey()
304 cip = ciphers[cipher]; in ieee80211_crypto_newkey()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/engines/
De_padlock.c80 static int padlock_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
547 padlock_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, in padlock_ciphers() argument
551 if (!cipher) { in padlock_ciphers()
559 *cipher = padlock_aes_128_ecb(); in padlock_ciphers()
562 *cipher = padlock_aes_128_cbc(); in padlock_ciphers()
565 *cipher = padlock_aes_128_cfb(); in padlock_ciphers()
568 *cipher = padlock_aes_128_ofb(); in padlock_ciphers()
571 *cipher = padlock_aes_128_ctr(); in padlock_ciphers()
575 *cipher = padlock_aes_192_ecb(); in padlock_ciphers()
578 *cipher = padlock_aes_192_cbc(); in padlock_ciphers()
[all …]
/netbsd/src/sys/crypto/skipjack/
Dskipjack.c134 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) in skipjack_forwards() argument
193 cipher [0] = wh1; cipher [1] = wl1; in skipjack_forwards()
194 cipher [2] = wh2; cipher [3] = wl2; in skipjack_forwards()
195 cipher [4] = wh3; cipher [5] = wl3; in skipjack_forwards()
196 cipher [6] = wh4; cipher [7] = wl4; in skipjack_forwards()
201 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_t **key_tables) in skipjack_backwards() argument
204 u_int8_t wh1 = cipher[0]; u_int8_t wl1 = cipher[1]; in skipjack_backwards()
205 u_int8_t wh2 = cipher[2]; u_int8_t wl2 = cipher[3]; in skipjack_backwards()
206 u_int8_t wh3 = cipher[4]; u_int8_t wl3 = cipher[5]; in skipjack_backwards()
207 u_int8_t wh4 = cipher[6]; u_int8_t wl4 = cipher[7]; in skipjack_backwards()

12345678910>>...13