Home
last modified time | relevance | path

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

123

/third_party/openssl/providers/implementations/digests/
Dsha3_prov.c203 #define SHA3_newctx(typ, uname, name, bitlen, pad) \ argument
212 ossl_sha3_init(ctx, pad, bitlen); \
217 #define KMAC_newctx(uname, bitlen, pad) \ argument
226 ossl_keccak_kmac_init(ctx, pad, bitlen); \
231 #define PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags) \ argument
241 #define PROV_FUNC_SHA3_DIGEST(name, bitlen, blksize, dgstsize, flags) \ argument
242 PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags), \
246 #define PROV_FUNC_SHAKE_DIGEST(name, bitlen, blksize, dgstsize, flags) \ argument
247 PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags), \
300 #define IMPLEMENT_SHA3_functions(bitlen) \ argument
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/digests/
Dsha3_prov.c203 #define SHA3_newctx(typ, uname, name, bitlen, pad) \ argument
212 ossl_sha3_init(ctx, pad, bitlen); \
217 #define KMAC_newctx(uname, bitlen, pad) \ argument
226 ossl_keccak_kmac_init(ctx, pad, bitlen); \
231 #define PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags) \ argument
241 #define PROV_FUNC_SHA3_DIGEST(name, bitlen, blksize, dgstsize, flags) \ argument
242 PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags), \
246 #define PROV_FUNC_SHAKE_DIGEST(name, bitlen, blksize, dgstsize, flags) \ argument
247 PROV_FUNC_SHA3_DIGEST_COMMON(name, bitlen, blksize, dgstsize, flags), \
300 #define IMPLEMENT_SHA3_functions(bitlen) \ argument
[all …]
/third_party/openssl/crypto/evp/
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 …]
/third_party/node/deps/openssl/openssl/crypto/evp/
Dlegacy_sha.c196 #define EVP_MD_SHA3(bitlen) \ argument
197 const EVP_MD *EVP_sha3_##bitlen(void) \
199 static const EVP_MD sha3_##bitlen##_md = { \
200 NID_sha3_##bitlen, \
201 NID_RSA_SHA3_##bitlen, \
202 bitlen / 8, \
207 (KECCAK1600_WIDTH - bitlen * 2) / 8), \
209 return &sha3_##bitlen##_md; \
211 #define EVP_MD_SHAKE(bitlen) \ argument
212 const EVP_MD *EVP_shake##bitlen(void) \
[all …]
/third_party/openssl/include/internal/
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);
/third_party/node/deps/openssl/openssl/include/internal/
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);
/third_party/openssl/crypto/pem/
Dpvkfmt.c249 unsigned int ossl_blob_length(unsigned bitlen, int isdss, int ispub) in ossl_blob_length() argument
251 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length()
252 unsigned int hnbyte = (bitlen + 15) >> 4; in ossl_blob_length()
286 unsigned int bitlen, magic; in do_b2i_key() local
289 if (ossl_do_blob_header(&p, length, &magic, &bitlen, isdss, ispub) <= 0) { in do_b2i_key()
294 if (length < ossl_blob_length(bitlen, *isdss, *ispub)) { in do_b2i_key()
299 key = ossl_b2i_RSA_after_header(&p, bitlen, *ispub); in do_b2i_key()
302 key = ossl_b2i_DSA_after_header(&p, bitlen, *ispub); in do_b2i_key()
325 unsigned int bitlen, magic, length; in ossl_b2i_bio() local
335 if (ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, ispub) <= 0) in ossl_b2i_bio()
[all …]
/third_party/node/deps/openssl/openssl/crypto/pem/
Dpvkfmt.c249 unsigned int ossl_blob_length(unsigned bitlen, int isdss, int ispub) in ossl_blob_length() argument
251 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length()
252 unsigned int hnbyte = (bitlen + 15) >> 4; in ossl_blob_length()
286 unsigned int bitlen, magic; in do_b2i_key() local
289 if (ossl_do_blob_header(&p, length, &magic, &bitlen, isdss, ispub) <= 0) { in do_b2i_key()
294 if (length < ossl_blob_length(bitlen, *isdss, *ispub)) { in do_b2i_key()
299 key = ossl_b2i_RSA_after_header(&p, bitlen, *ispub); in do_b2i_key()
302 key = ossl_b2i_DSA_after_header(&p, bitlen, *ispub); in do_b2i_key()
325 unsigned int bitlen, magic, length; in ossl_b2i_bio() local
335 if (ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, ispub) <= 0) in ossl_b2i_bio()
[all …]
/third_party/openssl/crypto/sha/
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()
/third_party/node/deps/openssl/openssl/crypto/sha/
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()
/third_party/node/deps/openssl/openssl/providers/implementations/encode_decode/
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()
155 key = ctx->desc->read_private_key(&p, bitlen, ispub); in msblob2key_decode()
164 key = ctx->desc->read_public_key(&p, bitlen, ispub); in msblob2key_decode()
/third_party/openssl/providers/implementations/encode_decode/
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()
/third_party/node/deps/openssl/openssl/crypto/whrlpool/
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()
/third_party/openssl/crypto/whrlpool/
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()
/third_party/node/deps/openssl/openssl/include/crypto/
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,
/third_party/openssl/include/crypto/
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,
/third_party/openssl/crypto/bn/
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()
/third_party/node/deps/openssl/openssl/crypto/bn/
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()
/third_party/node/deps/openssl/openssl/crypto/rsa/
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()
/third_party/openssl/crypto/rsa/
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()
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
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()
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()
/third_party/openssl/providers/implementations/ciphers/
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()
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()
/third_party/mbedtls/library/
Ddebug.c203 size_t bitlen; in mbedtls_debug_print_mpi() local
214 bitlen = mbedtls_mpi_bitlen(X); in mbedtls_debug_print_mpi()
217 text, (unsigned) bitlen); in mbedtls_debug_print_mpi()
220 if (bitlen == 0) { in mbedtls_debug_print_mpi()
225 for (n = (int) ((bitlen - 1) / 8); n >= 0; n--) { in mbedtls_debug_print_mpi()

123