| /src/crypto/external/apache2/openssl/dist/test/ |
| cipher_overhead_test.c | 14 static int cipher_enabled(const SSL_CIPHER *ciph) 20 if ((ciph->algorithm_mac & SSL_AEAD) != 0) 23 if (ciph->algorithm_enc != SSL_eNULL 24 && EVP_get_cipherbynid(SSL_CIPHER_get_cipher_nid(ciph)) == NULL) 27 if (EVP_get_digestbynid(SSL_CIPHER_get_digest_nid(ciph)) == NULL) 36 const SSL_CIPHER *ciph; local 40 ciph = ssl3_get_cipher(i); 41 if (!ciph->min_dtls) 43 if (!cipher_enabled(ciph)) { 44 TEST_skip("Skipping disabled cipher %s", ciph->name) [all...] |
| /src/crypto/external/bsd/openssl/dist/test/ |
| cipher_overhead_test.c | 14 static int cipher_enabled(const SSL_CIPHER *ciph) 20 if ((ciph->algorithm_mac & SSL_AEAD) != 0) 23 if (ciph->algorithm_enc != SSL_eNULL 24 && EVP_get_cipherbynid(SSL_CIPHER_get_cipher_nid(ciph)) == NULL) 27 if (EVP_get_digestbynid(SSL_CIPHER_get_digest_nid(ciph)) == NULL) 36 const SSL_CIPHER *ciph; local 40 ciph = ssl3_get_cipher(i); 41 if (!ciph->min_dtls) 43 if (!cipher_enabled(ciph)) { 44 TEST_skip("Skipping disabled cipher %s", ciph->name) [all...] |
| tls13encryptiontest.c | 310 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); local 350 ivlen = EVP_CIPHER_get_iv_length(ciph); 363 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 364 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0)
|
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| cipher_overhead_test.c | 27 const SSL_CIPHER *ciph; local 31 ciph = ssl3_get_cipher(i); 32 if (!ciph->min_dtls) 34 if (!TEST_true(ssl_cipher_get_overhead(ciph, &mac, &in, &blk, &ex))) { 35 TEST_info("Failed getting %s", ciph->name); 39 ciph->name, mac, in, blk, ex);
|
| tls13encryptiontest.c | 321 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); local 361 ivlen = EVP_CIPHER_iv_length(ciph); 374 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 375 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0)
|
| /src/usr.sbin/fwctl/ |
| fwmpegts.c | 143 struct ciphdr *ciph; local 202 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ 203 if (ciph->fmt != CIP_FMT_MPEG) 206 ciph->fmt); 207 if (ciph->fn != 3) { 211 __func__, ciph->fn); 213 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ 226 ciph->len, ciph->len * 4); 229 ciph->fn, (1<<ciph->fn) ) [all...] |
| fwdv.c | 98 struct ciphdr *ciph; local 180 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ 181 if (ciph->fmt != CIP_FMT_DVCR) 183 __func__, ciph->fmt); 184 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ 186 if (ciph->fdf.dv.cyc != 0xffff && k == 0) 187 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); 193 (char *)dv < (char *)(ptr + ciph->len); 201 lsystem = ciph->fdf.dv.fs; 281 struct ciphdr *ciph; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/cms/ |
| cms_enc.c | 27 const EVP_CIPHER *ciph; local 48 ciph = ec->cipher; 55 ciph = EVP_get_cipherbyobj(calg->algorithm); 57 if (!ciph) { 63 if (EVP_CipherInit_ex(ctx, ciph, NULL, NULL, NULL, enc) <= 0) { 188 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, 196 if (ciph) { 209 return cms_EncryptedContent_init(ec, ciph, key, keylen);
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| names.c | 99 void (*fn) (const EVP_CIPHER *ciph, 112 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, 126 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, 142 void (*fn) (const EVP_MD *ciph,
|
| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| asymcipher.c | 154 ctx->op.ciph.cipher = cipher; 155 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); 156 if (ctx->op.ciph.algctx == NULL) { 171 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); 180 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); 258 if (ctx->op.ciph.algctx == NULL) 261 cipher = ctx->op.ciph.cipher; 264 ret = cipher->encrypt(ctx->op.ciph.algctx, out, outlen, (out == NULL ? 0 : *outlen), in, inlen); 307 if (ctx->op.ciph.algctx == NULL) 310 cipher = ctx->op.ciph.cipher [all...] |
| pmeth_lib.c | 148 && ctx->op.ciph.algctx != NULL) 379 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) 380 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); 381 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); 382 ctx->op.ciph.algctx = NULL; 383 ctx->op.ciph.cipher = NULL; 531 if (pctx->op.ciph.cipher != NULL) { 532 rctx->op.ciph.cipher = pctx->op.ciph.cipher [all...] |
| names.c | 199 void (*fn)(const EVP_CIPHER *ciph, 212 void EVP_CIPHER_do_all(void (*fn)(const EVP_CIPHER *ciph, 226 void EVP_CIPHER_do_all_sorted(void (*fn)(const EVP_CIPHER *ciph, 243 void (*fn)(const EVP_MD *ciph,
|
| evp_local.h | 374 int evp_do_ciph_getparams(const EVP_CIPHER *ciph, OSSL_PARAM params[]); 375 int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx, 377 int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx,
|
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| asymcipher.c | 144 ctx->op.ciph.cipher = cipher; 145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); 146 if (ctx->op.ciph.algctx == NULL) { 159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); 167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); 243 if (ctx->op.ciph.algctx == NULL) 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, 285 if (ctx->op.ciph.algctx == NULL) 288 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen [all...] |
| pmeth_lib.c | 170 && ctx->op.ciph.algctx != NULL) 400 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) 401 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); 402 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); 403 ctx->op.ciph.algctx = NULL; 404 ctx->op.ciph.cipher = NULL; 547 if (pctx->op.ciph.cipher != NULL) { 548 rctx->op.ciph.cipher = pctx->op.ciph.cipher [all...] |
| names.c | 199 void (*fn) (const EVP_CIPHER *ciph, 212 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, 226 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, 242 void (*fn) (const EVP_MD *ciph,
|
| evp_local.h | 337 int evp_do_ciph_getparams(const EVP_CIPHER *ciph, OSSL_PARAM params[]); 338 int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx, 340 int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx,
|
| /src/crypto/external/apache2/openssl/dist/crypto/cms/ |
| cms_enc.c | 226 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, 235 if (ciph) { 236 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0) { 256 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen,
|
| /src/crypto/external/apache2/openssl/dist/ssl/record/methods/ |
| tls1_meth.c | 23 const EVP_CIPHER *ciph, 62 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0) { 88 if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_GCM_MODE) { 89 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, NULL, enc) 96 } else if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_CCM_MODE) { 97 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, enc) 112 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { 118 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0 129 * different to that in ciph if we have an ENGINE in use 132 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) [all...] |
| ktls_meth.c | 290 const EVP_CIPHER *ciph, 312 if (!ktls_int_check_supported_cipher(rl, ciph, md, taglen)) 325 if (!ktls_configure_crypto(rl->libctx, rl->version, ciph, md, rl->sequence, 404 const EVP_CIPHER *ciph, size_t taglen, 416 ciph, taglen, md, comp, prev, 426 ivlen, mackey, mackeylen, ciph,
|
| ssl3_meth.c | 21 const EVP_CIPHER *ciph, 62 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { 69 * different to that in ciph if we have an ENGINE in use 72 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) {
|
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| rand-fortuna.c | 114 CIPH_CTX ciph; member in struct:fortuna_state 205 ciph_encrypt(&st->ciph, st->counter, dst); 287 ciph_init(&st->ciph, st->key, BLOCK); 352 ciph_init(&st->ciph, st->key, BLOCK);
|
| /src/crypto/external/bsd/openssl/dist/crypto/cms/ |
| cms_enc.c | 226 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, 235 if (ciph) { 248 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen,
|
| /src/crypto/external/apache2/openssl/dist/ssl/ |
| s3_enc.c | 96 const EVP_CIPHER *ciph; local 104 ciph = s->s3.tmp.new_sym_enc; 122 key_len = EVP_CIPHER_get_key_length(ciph); 123 iv_len = EVP_CIPHER_get_iv_length(ciph); 151 md_len, ciph, 0, NID_undef, md, comp, NULL)) {
|
| /src/crypto/external/apache2/openssl/dist/include/internal/ |
| recordmethod.h | 126 const EVP_CIPHER *ciph,
|