Home
last modified time | relevance | path

Searched refs:cipher_data (Results 1 – 25 of 30) sorted by relevance

12

/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Devp-hcrypto.c69 AES_KEY *k = ctx->cipher_data; in aes_init()
83 AES_KEY *k = ctx->cipher_data; in aes_do_cipher()
416 DES_key_schedule *k = ctx->cipher_data; in des_cbc_init()
429 DES_key_schedule *k = ctx->cipher_data; in des_cbc_do_cipher()
478 struct des_ede3_cbc *k = ctx->cipher_data; in des_ede3_cbc_init()
502 struct des_ede3_cbc *k = ctx->cipher_data; in des_ede3_cbc_do_cipher()
553 struct rc2_cbc *k = ctx->cipher_data; in rc2_init()
568 struct rc2_cbc *k = ctx->cipher_data; in rc2_do_cipher()
666 CAMELLIA_KEY *k = ctx->cipher_data; in camellia_init()
678 CAMELLIA_KEY *k = ctx->cipher_data; in camellia_do_cipher()
[all …]
H A Devp-cc.c74 struct cc_key *cc = ctx->cipher_data; in cc_do_cipher()
93 struct cc_key *cc = ctx->cipher_data; in cc_cleanup()
146 struct cc_key *cc = ctx->cipher_data; in cc_des_ede3_cbc_init()
199 struct cc_key *cc = ctx->cipher_data; in cc_des_cbc_init()
251 struct cc_key *cc = ctx->cipher_data; in cc_aes_cbc_init()
373 struct cc_key *cc = ctx->cipher_data; in cc_aes_cfb8_init()
495 struct cc_key *cc = ctx->cipher_data; in cc_rc2_cbc_init()
839 struct cc_key *cc = ctx->cipher_data; in cc_rc4_init()
H A Devp-crypt.c66 struct generic_key *gk = ctx->cipher_data; in generic_cbc_do_cipher()
87 struct generic_key *gk = ctx->cipher_data; in generic_cleanup()
127 struct generic_key *gk = ctx->cipher_data; in crypto_des_ede3_cbc_init()
H A Devp.c595 if (c->cipher_data) { in EVP_CIPHER_CTX_cleanup()
597 memset(c->cipher_data, 0, c->cipher->ctx_size); in EVP_CIPHER_CTX_cleanup()
598 free(c->cipher_data); in EVP_CIPHER_CTX_cleanup()
599 c->cipher_data = NULL; in EVP_CIPHER_CTX_cleanup()
792 ctx->cipher_data = calloc(1, c->ctx_size); in EVP_CipherInit_ex()
793 if (ctx->cipher_data == NULL && c->ctx_size != 0) in EVP_CipherInit_ex()
H A Devp-openssl.c114 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; /* EVP_CIPHER_CTX wrapper */ in cipher_ctx_init()
160 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; in cipher_do_cipher()
169 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; in cipher_cleanup()
186 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; in cipher_ctrl()
H A Devp-wincng.c62 struct wincng_key *cng = ctx->cipher_data; in wincng_do_cipher()
99 struct wincng_key *cng = ctx->cipher_data; in wincng_cleanup()
192 struct wincng_key *cng = ctx->cipher_data; in wincng_key_init()
H A Devp-pkcs11.c319 struct pkcs11_cipher_ctx *p11ctx = (struct pkcs11_cipher_ctx *)ctx->cipher_data; in p11_key_init()
371 struct pkcs11_cipher_ctx *p11ctx = (struct pkcs11_cipher_ctx *)ctx->cipher_data; in p11_do_cipher()
390 struct pkcs11_cipher_ctx *p11ctx = (struct pkcs11_cipher_ctx *)ctx->cipher_data; in p11_cleanup()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Deng_devcrypto.c76 } cipher_data[] = { variable
126 for (i = 0; i < OSSL_NELEM(cipher_data); i++) in get_cipher_data_index()
127 if (nid == cipher_data[i].nid) in get_cipher_data_index()
141 return &cipher_data[get_cipher_data_index(nid)]; in get_cipher_data()
340 static int known_cipher_nids[OSSL_NELEM(cipher_data)];
342 static EVP_CIPHER *known_cipher_methods[OSSL_NELEM(cipher_data)] = { NULL, };
354 i < OSSL_NELEM(cipher_data); i++) { in prepare_cipher_methods()
360 sess.cipher = cipher_data[i].devcryptoid; in prepare_cipher_methods()
361 sess.keylen = cipher_data[i].keylen; in prepare_cipher_methods()
366 cipher_mode = cipher_data[i].flags & EVP_CIPH_MODE; in prepare_cipher_methods()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/engines/
H A De_devcrypto.c122 } cipher_data[] = { variable
172 for (i = 0; i < OSSL_NELEM(cipher_data); i++) in find_cipher_data_index()
173 if (nid == cipher_data[i].nid) in find_cipher_data_index()
196 return &cipher_data[get_cipher_data_index(nid)]; in get_cipher_data()
406 static int known_cipher_nids[OSSL_NELEM(cipher_data)];
408 static EVP_CIPHER *known_cipher_methods[OSSL_NELEM(cipher_data)] = { NULL, };
409 static int selected_ciphers[OSSL_NELEM(cipher_data)];
410 static struct driver_info_st cipher_driver_info[OSSL_NELEM(cipher_data)];
443 i < OSSL_NELEM(cipher_data); i++) { in prepare_cipher_methods()
449 sess.cipher = cipher_data[i].devcryptoid; in prepare_cipher_methods()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Devp_enc.c30 if (c->cipher_data && c->cipher->ctx_size) in EVP_CIPHER_CTX_reset()
31 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); in EVP_CIPHER_CTX_reset()
33 OPENSSL_free(c->cipher_data); in EVP_CIPHER_CTX_reset()
92 || ctx->cipher_data) { in EVP_CipherInit_ex()
129 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in EVP_CipherInit_ex()
130 if (ctx->cipher_data == NULL) { in EVP_CipherInit_ex()
136 ctx->cipher_data = NULL; in EVP_CipherInit_ex()
702 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
703 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
704 if (out->cipher_data == NULL) { in EVP_CIPHER_CTX_copy()
[all …]
H A Devp_lib.c225 return ctx->cipher_data; in EVP_CIPHER_CTX_get_cipher_data()
228 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) in EVP_CIPHER_CTX_set_cipher_data() argument
232 old_cipher_data = ctx->cipher_data; in EVP_CIPHER_CTX_set_cipher_data()
233 ctx->cipher_data = cipher_data; in EVP_CIPHER_CTX_set_cipher_data()
H A De_chacha20_poly1305.c31 #define data(ctx) ((EVP_CHACHA_KEY *)(ctx)->cipher_data)
162 # define aead_data(ctx) ((EVP_CHACHA_AEAD_CTX *)(ctx)->cipher_data)
496 OPENSSL_cleanse(ctx->cipher_data, sizeof(*actx) + Poly1305_ctx_size()); in chacha20_poly1305_cleanup()
508 actx = ctx->cipher_data in chacha20_poly1305_ctrl()
528 dst->cipher_data = in chacha20_poly1305_ctrl()
530 if (dst->cipher_data == NULL) { in chacha20_poly1305_ctrl()
H A Devp_local.h38 void *cipher_data; /* per EVP data */ member
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Devp_enc.c57 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()
60 OPENSSL_free(ctx->cipher_data); in EVP_CIPHER_CTX_reset()
156 OPENSSL_clear_free(ctx->cipher_data, ctx->cipher->ctx_size); in evp_cipher_init_internal()
157 ctx->cipher_data = NULL; in evp_cipher_init_internal()
344 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in evp_cipher_init_internal()
345 if (ctx->cipher_data == NULL) { in evp_cipher_init_internal()
351 ctx->cipher_data = NULL; in evp_cipher_init_internal()
1456 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy()
1457 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy()
[all …]
H A De_chacha20_poly1305.c32 #define data(ctx) ((EVP_CHACHA_KEY *)(ctx)->cipher_data)
164 # define aead_data(ctx) ((EVP_CHACHA_AEAD_CTX *)(ctx)->cipher_data)
492 OPENSSL_cleanse(ctx->cipher_data, sizeof(*actx) + Poly1305_ctx_size()); in chacha20_poly1305_cleanup()
504 actx = ctx->cipher_data in chacha20_poly1305_ctrl()
524 dst->cipher_data = in chacha20_poly1305_ctrl()
526 if (dst->cipher_data == NULL) { in chacha20_poly1305_ctrl()
H A Devp_lib.c487 return ctx->cipher_data; in EVP_CIPHER_CTX_get_cipher_data()
490 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) in EVP_CIPHER_CTX_set_cipher_data() argument
494 old_cipher_data = ctx->cipher_data; in EVP_CIPHER_CTX_set_cipher_data()
495 ctx->cipher_data = cipher_data; in EVP_CIPHER_CTX_set_cipher_data()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dssl_asn1.c110 unsigned char cipher_data[2]; in i2d_SSL_SESSION() local
141 cipher_data[0] = ((unsigned char)(l >> 8L)) & 0xff; in i2d_SSL_SESSION()
142 cipher_data[1] = ((unsigned char)(l)) & 0xff; in i2d_SSL_SESSION()
144 ssl_session_oinit(&as.cipher, &cipher, cipher_data, 2); in i2d_SSL_SESSION()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dbftest.c125 static unsigned char cipher_data[NUM_TESTS][8] = { variable
242 printf("%02X", cipher_data[i][j]); in print_test_data()
323 if (!TEST_mem_eq(&(cipher_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dbftest.c124 static unsigned char cipher_data[NUM_TESTS][8] = { variable
241 printf("%02X", cipher_data[i][j]); in print_test_data()
322 if (!TEST_mem_eq(&(cipher_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb()
H A Ddestest.c100 static unsigned char cipher_data[NUM_TESTS][8] = { variable
314 if (!TEST_mem_eq(out, 8, cipher_data[i], 8)) { in test_des_ecb()
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dssl_asn1.c112 unsigned char cipher_data[2]; in i2d_SSL_SESSION() local
145 cipher_data[0] = ((unsigned char)(l >> 8L)) & 0xff; in i2d_SSL_SESSION()
146 cipher_data[1] = ((unsigned char)(l)) & 0xff; in i2d_SSL_SESSION()
148 ssl_session_oinit(&as.cipher, &cipher, cipher_data, 2); in i2d_SSL_SESSION()
/netbsd-src/crypto/external/bsd/openssl.old/dist/engines/
H A De_dasync.c640 void *cipher_data = OPENSSL_malloc(data_size); in dasync_cipher_ctrl_helper() local
642 if (cipher_data == NULL) in dasync_cipher_ctrl_helper()
644 memcpy(cipher_data, pipe_ctx->inner_cipher_data, data_size); in dasync_cipher_ctrl_helper()
645 pipe_ctx->inner_cipher_data = cipher_data; in dasync_cipher_ctrl_helper()
/netbsd-src/tests/lib/libdes/
H A Dt_des.c144 static unsigned char cipher_data[NUM_TESTS][8] = { variable
538 if (memcmp(out, cipher_data[i], 8) != 0) { in ATF_TC_BODY()
542 pt(cipher_data[i]), pt(out)); in ATF_TC_BODY()
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DEVP_CIPHER_CTX_get_cipher_data.pod13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DEVP_CIPHER_CTX_get_cipher_data.pod13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);

12