Home
last modified time | relevance | path

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

/openssl/providers/implementations/digests/
H A Dsha3_prov.c525 ossl_keccak_init(ctx, pad, bitlen, 2 * bitlen); \
653 SHA3_newctx(sha3, SHA3_##bitlen, sha3_##bitlen, bitlen, '\x06') \
654 PROV_FUNC_SHA3_DIGEST(sha3_##bitlen, bitlen, \
655 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
659 SHA3_newctx(keccak, KECCAK_##bitlen, keccak_##bitlen, bitlen, '\x01') \
660 PROV_FUNC_SHA3_DIGEST(keccak_##bitlen, bitlen, \
661 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
665 SHAKE_newctx(shake, SHAKE_##bitlen, shake_##bitlen, bitlen, \
667 PROV_FUNC_SHAKE_DIGEST(shake_##bitlen, bitlen, \
672 KMAC_newctx(keccak_kmac_##bitlen, bitlen, '\x04') \
[all …]
/openssl/crypto/evp/
H A Dlegacy_sha.c197 #define EVP_MD_SHA3(bitlen) \ argument
198 const EVP_MD *EVP_sha3_##bitlen(void) \
200 static const EVP_MD sha3_##bitlen##_md = { \
201 NID_sha3_##bitlen, \
202 NID_RSA_SHA3_##bitlen, \
203 bitlen / 8, \
208 (KECCAK1600_WIDTH - bitlen * 2) / 8), \
210 return &sha3_##bitlen##_md; \
212 #define EVP_MD_SHAKE(bitlen) \ argument
213 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
52 int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen);
/openssl/crypto/pem/
H A Dpvkfmt.c290 unsigned int bitlen, magic; in do_b2i_key() local
582 if (bitlen == 0) { in do_i2b()
608 write_ledword(&p, bitlen); in do_i2b()
638 int nbyte, hnbyte, bitlen; in check_bitlen_rsa() local
644 bitlen = RSA_bits(rsa); in check_bitlen_rsa()
646 hnbyte = (bitlen + 15) >> 4; in check_bitlen_rsa()
649 return bitlen; in check_bitlen_rsa()
670 return bitlen; in check_bitlen_rsa()
701 int bitlen; in check_bitlen_dsa() local
707 bitlen = BN_num_bits(p); in check_bitlen_dsa()
[all …]
/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,
102 unsigned int bitlen, magic, length; in msblob2key_decode() local
117 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2key_decode()
129 length = ossl_blob_length(bitlen, isdss, ispub); in msblob2key_decode()
153 key = ctx->desc->read_private_key(&p, bitlen, ispub); in msblob2key_decode()
162 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/sha/
H A Dsha3.c28 int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen) in ossl_sha3_init() argument
30 size_t bsz = SHA3_BLOCKSIZE(bitlen); in ossl_sha3_init()
35 ctx->md_size = bitlen / 8; in ossl_sha3_init()
43 int ossl_keccak_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen, size_t mdlen) in ossl_keccak_init() argument
45 int ret = ossl_sha3_init(ctx, pad, bitlen); in ossl_keccak_init()
/openssl/crypto/bn/
H A Dbn_rsa_fips186_4.c193 int bitlen, rounds; in ossl_bn_rsa_fips186_4_gen_prob_primes() local
207 bitlen = bn_rsa_fips186_5_aux_prime_min_size(nlen); in ossl_bn_rsa_fips186_4_gen_prob_primes()
208 if (bitlen == 0) in ossl_bn_rsa_fips186_4_gen_prob_primes()
215 if (!BN_priv_rand_ex(Xp1i, bitlen, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD, in ossl_bn_rsa_fips186_4_gen_prob_primes()
222 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()
H A Drsa_pk1.c283 uint16_t bitlen) in ossl_rsa_prf() argument
289 unsigned char be_bitlen[sizeof(bitlen)]; in ossl_rsa_prf()
295 if (tlen * 8 != bitlen) { in ossl_rsa_prf()
300 be_bitlen[0] = (bitlen >> 8) & 0xff; in ossl_rsa_prf()
301 be_bitlen[1] = bitlen & 0xff; in ossl_rsa_prf()
/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.c409 int bytelen = (prefixlen + 7) / 8, bitlen = prefixlen % 8; in make_addressPrefix() local
422 if (bitlen > 0) in make_addressPrefix()
423 aor->u.addressPrefix->data[bytelen - 1] &= ~(0xFF >> bitlen); in make_addressPrefix()
424 ossl_asn1_string_set_bits_left(aor->u.addressPrefix, 8 - bitlen); in make_addressPrefix()
/openssl/crypto/modes/
H A Dgcm128.c1553 u128 bitlen; in CRYPTO_gcm128_finish() local
1589 bitlen.hi = alen; in CRYPTO_gcm128_finish()
1590 bitlen.lo = clen; in CRYPTO_gcm128_finish()
1591 memcpy(ctx->Xn + mres, &bitlen, sizeof(bitlen)); in CRYPTO_gcm128_finish()
1592 mres += sizeof(bitlen); in CRYPTO_gcm128_finish()
/openssl/engines/
H A De_loader_attic.c1334 unsigned int magic = 0, bitlen = 0; in file_try_read_msblob() local
1341 if (ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, in file_try_read_msblob()
H A De_capi.c710 rsa_modlen = rp->bitlen / 8; in capi_get_pkey()
741 dsa_plen = dp->bitlen / 8; in capi_get_pkey()

Completed in 67 milliseconds