Home
last modified time | relevance | path

Searched refs:SHA_CBLOCK (Results 1 – 17 of 17) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c109 res = SHA_CBLOCK - res; in sha1_update()
117 res = len % SHA_CBLOCK; in sha1_update()
121 sha1_block_data_order(c, ptr, len / SHA_CBLOCK); in sha1_update()
419 sha_off = SHA_CBLOCK - key->md.num; in aesni_cbc_hmac_sha1_cipher()
439 && (blocks = (plen - (sha_off + iv)) / SHA_CBLOCK)) { in aesni_cbc_hmac_sha1_cipher()
444 blocks *= SHA_CBLOCK; in aesni_cbc_hmac_sha1_cipher()
494 unsigned char c[SHA_CBLOCK]; in aesni_cbc_hmac_sha1_cipher()
557 blocks = (len - (256 + 32 + SHA_CBLOCK)) / SHA_CBLOCK; in aesni_cbc_hmac_sha1_cipher()
558 aes_off = len - AES_BLOCK_SIZE - blocks * SHA_CBLOCK; in aesni_cbc_hmac_sha1_cipher()
559 sha_off = SHA_CBLOCK - plen; in aesni_cbc_hmac_sha1_cipher()
[all …]
H A Dlegacy_sha.c98 SHA_CBLOCK),
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c75 res = SHA_CBLOCK - res; in sha1_update()
83 res = len % SHA_CBLOCK; in sha1_update()
87 sha1_block_data_order(c, ptr, len / SHA_CBLOCK); in sha1_update()
382 size_t sha_off = SHA_CBLOCK - sctx->md.num; in aesni_cbc_hmac_sha1_cipher()
400 && (blocks = (plen - (sha_off + iv)) / SHA_CBLOCK)) { in aesni_cbc_hmac_sha1_cipher()
405 blocks *= SHA_CBLOCK; in aesni_cbc_hmac_sha1_cipher()
454 unsigned char c[SHA_CBLOCK]; in aesni_cbc_hmac_sha1_cipher()
501 if (len >= (256 + SHA_CBLOCK)) { in aesni_cbc_hmac_sha1_cipher()
502 j = (len - (256 + SHA_CBLOCK)) & (0 - SHA_CBLOCK); in aesni_cbc_hmac_sha1_cipher()
503 j += SHA_CBLOCK - sctx->md.num; in aesni_cbc_hmac_sha1_cipher()
[all …]
/freebsd/lib/libmd/
H A Dsha1c.c163 if ((c->num+len) >= SHA_CBLOCK) in SHA1_Update()
173 len-=(SHA_CBLOCK-c->num); in SHA1_Update()
216 sw=len/SHA_CBLOCK; in SHA1_Update()
219 sw*=SHA_CBLOCK; in SHA1_Update()
230 while (len >= SHA_CBLOCK) in SHA1_Update()
234 memcpy(p,data,SHA_CBLOCK); in SHA1_Update()
235 data+=SHA_CBLOCK; in SHA1_Update()
260 len-=SHA_CBLOCK; in SHA1_Update()
H A Dsha0c.c135 if ((c->num+len) >= SHA_CBLOCK) in SHA_Update()
145 len-=(SHA_CBLOCK-c->num); in SHA_Update()
188 sw=len/SHA_CBLOCK; in SHA_Update()
191 sw*=SHA_CBLOCK; in SHA_Update()
202 while (len >= SHA_CBLOCK) in SHA_Update()
206 memcpy(p,data,SHA_CBLOCK); in SHA_Update()
207 data+=SHA_CBLOCK; in SHA_Update()
232 len-=SHA_CBLOCK; in SHA_Update()
H A Dsha.h63 #define SHA_CBLOCK 64 macro
/freebsd/crypto/openssl/include/openssl/
H A Dsha.h37 # define SHA_CBLOCK (SHA_LBLOCK*4)/* SHA treats input data as a macro
40 # define SHA_LAST_BLOCK (SHA_CBLOCK-8)
/freebsd/sys/crypto/openssl/
H A Dossl_sha.h24 # define SHA_CBLOCK (SHA_LBLOCK*4)/* SHA treats input data as a macro
H A Dossl_sha1.c28 #define HASH_CBLOCK SHA_CBLOCK
H A Dossl_sha256.c62 #define HASH_CBLOCK SHA_CBLOCK
/freebsd/crypto/openssl/providers/implementations/digests/
H A Dsha2_prov.c62 sha1, SHA_CTX, SHA_CBLOCK, SHA_DIGEST_LENGTH, SHA2_FLAGS,
/freebsd/crypto/openssl/crypto/sha/
H A Dsha_local.h21 #define HASH_CBLOCK SHA_CBLOCK
194 data += SHA_CBLOCK; in HASH_BLOCK_DATA_ORDER()
H A Dsha256.c70 #define HASH_CBLOCK SHA_CBLOCK
/freebsd/crypto/openssl/crypto/engine/
H A Deng_openssl.c358 || !EVP_MD_meth_set_input_blocksize(md, SHA_CBLOCK) in test_sha_md()
/freebsd/crypto/openssl/engines/
H A De_ossltest.c105 || !EVP_MD_meth_set_input_blocksize(md, SHA_CBLOCK) in digest_sha1()
H A De_dasync.c16 * #defines and strucures can be accessed, in this case SHA_CBLOCK and
269 || !EVP_MD_meth_set_input_blocksize(_hidden_sha1_md, SHA_CBLOCK) in bind_dasync()
H A De_devcrypto.c690 { NID_sha1, SHA_CBLOCK, 20, CRYPTO_SHA1 },