Home
last modified time | relevance | path

Searched refs:bitlen (Results 1 – 20 of 20) sorted by relevance

/openssl/providers/implementations/digests/
H A Dsha3_prov.c349 SHA3_newctx(sha3, SHA3_##bitlen, sha3_##bitlen, bitlen, '\x06') \
350 PROV_FUNC_SHA3_DIGEST(sha3_##bitlen, bitlen, \
351 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
355 SHA3_newctx(keccak, KECCAK_##bitlen, keccak_##bitlen, bitlen, '\x01') \
356 PROV_FUNC_SHA3_DIGEST(keccak_##bitlen, bitlen, \
357 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
361 SHA3_newctx(shake, SHAKE_##bitlen, shake_##bitlen, bitlen, '\x1f') \
362 PROV_FUNC_SHAKE_DIGEST(shake_##bitlen, bitlen, \
363 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
366 KMAC_newctx(keccak_kmac_##bitlen, bitlen, '\x04') \
[all …]
/openssl/crypto/evp/
H A Dlegacy_sha.c192 #define EVP_MD_SHA3(bitlen) \ argument
193 const EVP_MD *EVP_sha3_##bitlen(void) \
195 static const EVP_MD sha3_##bitlen##_md = { \
196 NID_sha3_##bitlen, \
197 NID_RSA_SHA3_##bitlen, \
198 bitlen / 8, \
203 (KECCAK1600_WIDTH - bitlen * 2) / 8), \
205 return &sha3_##bitlen##_md; \
207 #define EVP_MD_SHAKE(bitlen) \ argument
208 const EVP_MD *EVP_shake##bitlen(void) \
[all …]
H A De_aes_cbc_hmac_sha1.c491 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local
597 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher()
599 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher()
602 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher()
603 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher()
604 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher()
605 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher()
626 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
642 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
654 data->u[SHA_LBLOCK - 1] = bitlen; in aesni_cbc_hmac_sha1_cipher()
H A De_aes_cbc_hmac_sha256.c523 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local
578 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher()
580 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher()
583 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher()
584 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher()
585 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher()
586 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher()
610 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
629 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
644 data->u[SHA_LBLOCK - 1] = bitlen; in aesni_cbc_hmac_sha256_cipher()
/openssl/include/internal/
H A Dsha3.h19 # define SHA3_MDSIZE(bitlen) (bitlen / 8) argument
20 # define KMAC_MDSIZE(bitlen) 2 * (bitlen / 8) argument
21 # define SHA3_BLOCKSIZE(bitlen) (KECCAK1600_WIDTH - bitlen * 2) / 8 argument
45 int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen);
47 size_t bitlen);
/openssl/crypto/pem/
H A Dpvkfmt.c288 unsigned int bitlen, magic; in do_b2i_key() local
571 if (bitlen == 0) { in do_i2b()
598 write_ledword(&p, bitlen); in do_i2b()
628 int nbyte, hnbyte, bitlen; in check_bitlen_rsa() local
634 bitlen = RSA_bits(rsa); in check_bitlen_rsa()
636 hnbyte = (bitlen + 15) >> 4; in check_bitlen_rsa()
639 return bitlen; in check_bitlen_rsa()
660 return bitlen; in check_bitlen_rsa()
691 int bitlen; in check_bitlen_dsa() local
697 bitlen = BN_num_bits(p); in check_bitlen_dsa()
[all …]
/openssl/crypto/sha/
H A Dsha3.c21 int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen) in ossl_sha3_init() argument
23 size_t bsz = SHA3_BLOCKSIZE(bitlen); in ossl_sha3_init()
28 ctx->md_size = bitlen / 8; in ossl_sha3_init()
36 int ossl_keccak_kmac_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen) in ossl_keccak_kmac_init() argument
38 int ret = ossl_sha3_init(ctx, pad, bitlen); in ossl_keccak_kmac_init()
/openssl/include/crypto/
H A Dpem.h25 unsigned int ossl_blob_length(unsigned bitlen, int isdss, int ispub);
31 DSA *ossl_b2i_DSA_after_header(const unsigned char **in, unsigned int bitlen,
34 RSA *ossl_b2i_RSA_after_header(const unsigned char **in, unsigned int bitlen,
/openssl/providers/implementations/encode_decode/
H A Ddecode_msblob2key.c34 typedef void *b2i_of_void_fn(const unsigned char **in, unsigned int bitlen,
90 unsigned int bitlen, magic, length; in msblob2key_decode() local
105 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2key_decode()
117 length = ossl_blob_length(bitlen, isdss, ispub); in msblob2key_decode()
143 key = ctx->desc->read_private_key(&p, bitlen, ispub); in msblob2key_decode()
152 key = ctx->desc->read_public_key(&p, bitlen, ispub); in msblob2key_decode()
/openssl/crypto/whrlpool/
H A Dwp_dgst.c104 c->bitlen[0] += bits; in WHIRLPOOL_BitUpdate()
105 if (c->bitlen[0] < bits) { /* overflow */ in WHIRLPOOL_BitUpdate()
108 c->bitlen[n]++; in WHIRLPOOL_BitUpdate()
109 } while (c->bitlen[n] == 0 in WHIRLPOOL_BitUpdate()
240 for (v = c->bitlen[i], j = 0; j < sizeof(size_t); j++, v >>= 8) in WHIRLPOOL_Final()
/openssl/crypto/bn/
H A Dbn_rsa_fips186_4.c163 int bitlen; in ossl_bn_rsa_fips186_4_gen_prob_primes() local
177 bitlen = bn_rsa_fips186_5_aux_prime_min_size(nlen); in ossl_bn_rsa_fips186_4_gen_prob_primes()
178 if (bitlen == 0) in ossl_bn_rsa_fips186_4_gen_prob_primes()
184 if (!BN_priv_rand_ex(Xp1i, bitlen, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD, in ossl_bn_rsa_fips186_4_gen_prob_primes()
191 if (!BN_priv_rand_ex(Xp2i, bitlen, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD, in ossl_bn_rsa_fips186_4_gen_prob_primes()
/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c228 int bitlen; in ossl_rsa_check_public_exponent() local
230 bitlen = BN_num_bits(e); in ossl_rsa_check_public_exponent()
231 return (BN_is_odd(e) && bitlen > 16 && bitlen < 257); in ossl_rsa_check_public_exponent()
245 int bitlen = (nbits >> 1) - 100; in ossl_rsa_check_pminusq_diff() local
256 return (BN_num_bits(diff) > bitlen); in ossl_rsa_check_pminusq_diff()
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c450 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local
511 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher()
513 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher()
516 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher()
517 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher()
518 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher()
519 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher()
540 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
556 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
568 data->u[SHA_LBLOCK - 1] = bitlen; in aesni_cbc_hmac_sha1_cipher()
H A Dcipher_aes_cbc_hmac_sha256_hw.c492 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local
547 bitlen = sctx->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha256_cipher()
549 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha256_cipher()
552 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha256_cipher()
553 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha256_cipher()
554 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha256_cipher()
555 bitlen = mac.u[0]; in aesni_cbc_hmac_sha256_cipher()
579 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
598 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
613 data->u[SHA_LBLOCK - 1] = bitlen; in aesni_cbc_hmac_sha256_cipher()
/openssl/providers/implementations/storemgmt/
H A Dfile_store_any2obj.c117 unsigned int bitlen, magic; in msblob2obj_decode() local
142 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2obj_decode()
148 mem_want = ossl_blob_length(bitlen, isdss, ispub); in msblob2obj_decode()
/openssl/include/openssl/
H A Dwhrlpool.h43 size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)]; member
/openssl/crypto/x509/
H A Dv3_addr.c404 int bytelen = (prefixlen + 7) / 8, bitlen = prefixlen % 8; in make_addressPrefix() local
417 if (bitlen > 0) in make_addressPrefix()
418 aor->u.addressPrefix->data[bytelen - 1] &= ~(0xFF >> bitlen); in make_addressPrefix()
419 ossl_asn1_string_set_bits_left(aor->u.addressPrefix, 8 - bitlen); in make_addressPrefix()
/openssl/crypto/modes/
H A Dgcm128.c1501 u128 bitlen; in CRYPTO_gcm128_finish() local
1537 bitlen.hi = alen; in CRYPTO_gcm128_finish()
1538 bitlen.lo = clen; in CRYPTO_gcm128_finish()
1539 memcpy(ctx->Xn + mres, &bitlen, sizeof(bitlen)); in CRYPTO_gcm128_finish()
1540 mres += sizeof(bitlen); in CRYPTO_gcm128_finish()
/openssl/engines/
H A De_loader_attic.c1343 unsigned int magic = 0, bitlen = 0; in file_try_read_msblob() local
1350 if (ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, in file_try_read_msblob()
H A De_capi.c704 rsa_modlen = rp->bitlen / 8; in capi_get_pkey()
731 dsa_plen = dp->bitlen / 8; in capi_get_pkey()

Completed in 92 milliseconds