Home
last modified time | relevance | path

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

/openssl-master/providers/implementations/digests/
A Dsha3_prov.c307 SHA3_newctx(sha3, SHA3_##bitlen, sha3_##bitlen, bitlen, '\x06') \
308 PROV_FUNC_SHA3_DIGEST(sha3_##bitlen, bitlen, \
309 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
313 SHA3_newctx(keccak, KECCAK_##bitlen, keccak_##bitlen, bitlen, '\x01') \
314 PROV_FUNC_SHA3_DIGEST(keccak_##bitlen, bitlen, \
315 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
319 SHA3_newctx(shake, SHAKE_##bitlen, shake_##bitlen, bitlen, '\x1f') \
320 PROV_FUNC_SHAKE_DIGEST(shake_##bitlen, bitlen, \
321 SHA3_BLOCKSIZE(bitlen), SHA3_MDSIZE(bitlen), \
324 KMAC_newctx(keccak_kmac_##bitlen, bitlen, '\x04') \
[all …]
/openssl-master/crypto/evp/
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 …]
A De_aes_cbc_hmac_sha1.c490 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local
590 bitlen = key->md.Nl + (inp_len << 3); /* at most 18 bits */ in aesni_cbc_hmac_sha1_cipher()
592 bitlen = BSWAP4(bitlen); in aesni_cbc_hmac_sha1_cipher()
595 mac.c[1] = (unsigned char)(bitlen >> 16); in aesni_cbc_hmac_sha1_cipher()
596 mac.c[2] = (unsigned char)(bitlen >> 8); in aesni_cbc_hmac_sha1_cipher()
597 mac.c[3] = (unsigned char)bitlen; in aesni_cbc_hmac_sha1_cipher()
598 bitlen = mac.u[0]; in aesni_cbc_hmac_sha1_cipher()
619 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
635 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
647 data->u[SHA_LBLOCK - 1] = bitlen; in aesni_cbc_hmac_sha1_cipher()
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-master/include/internal/
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-master/crypto/pem/
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-master/crypto/sha/
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-master/include/crypto/
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-master/providers/implementations/encode_decode/
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
102 ok = ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) > 0; in msblob2key_decode()
114 length = ossl_blob_length(bitlen, isdss, ispub); in msblob2key_decode()
140 key = ctx->desc->read_private_key(&p, bitlen, ispub); in msblob2key_decode()
149 key = ctx->desc->read_public_key(&p, bitlen, ispub); in msblob2key_decode()
/openssl-master/crypto/whrlpool/
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-master/crypto/bn/
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-master/crypto/rsa/
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-master/providers/implementations/ciphers/
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()
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-master/providers/implementations/storemgmt/
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-master/include/openssl/
A Dwhrlpool.h43 size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)]; member
/openssl-master/crypto/x509/
A Dv3_addr.c392 int bytelen = (prefixlen + 7) / 8, bitlen = prefixlen % 8; in make_addressPrefix() local
405 if (bitlen > 0) { in make_addressPrefix()
406 aor->u.addressPrefix->data[bytelen - 1] &= ~(0xFF >> bitlen); in make_addressPrefix()
407 aor->u.addressPrefix->flags |= 8 - bitlen; in make_addressPrefix()
/openssl-master/crypto/modes/
A Dgcm128.c1782 u128 bitlen; local
1818 bitlen.hi = alen;
1819 bitlen.lo = clen;
1820 memcpy(ctx->Xn + mres, &bitlen, sizeof(bitlen));
1821 mres += sizeof(bitlen);
/openssl-master/engines/
A De_loader_attic.c1350 unsigned int magic = 0, bitlen = 0; in file_try_read_msblob() local
1357 if (!ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, in file_try_read_msblob()
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 40 milliseconds