Searched refs:maxpad (Results 1 – 5 of 5) sorted by relevance
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha1_hw.c | 450 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 476 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 477 maxpad |= (255 - maxpad) >> (sizeof(maxpad) * 8 - 8); in aesni_cbc_hmac_sha1_cipher() 478 maxpad &= 255; in aesni_cbc_hmac_sha1_cipher() 480 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha1_cipher() 488 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha1_cipher() 602 unsigned char *p = out + len - 1 - maxpad - SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 606 for (res = 0, i = 0, j = 0; j < maxpad + SHA_DIGEST_LENGTH; j++) { in aesni_cbc_hmac_sha1_cipher()
|
H A D | cipher_aes_cbc_hmac_sha256_hw.c | 492 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 512 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher() 513 maxpad |= (255 - maxpad) >> (sizeof(maxpad) * 8 - 8); in aesni_cbc_hmac_sha256_cipher() 514 maxpad &= 255; in aesni_cbc_hmac_sha256_cipher() 516 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha256_cipher() 524 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha256_cipher() 654 out + len - 1 - maxpad - SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher() 659 j < maxpad + SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha1.c | 490 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local 532 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 533 maxpad |= (255 - maxpad) >> (sizeof(maxpad) * 8 - 8); in aesni_cbc_hmac_sha1_cipher() 534 maxpad &= 255; in aesni_cbc_hmac_sha1_cipher() 536 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha1_cipher() 544 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha1_cipher() 701 unsigned char *p = out + len - 1 - maxpad - SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 705 for (res = 0, i = 0, j = 0; j < maxpad + SHA_DIGEST_LENGTH; j++) { in aesni_cbc_hmac_sha1_cipher() 726 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha1_cipher()
|
H A D | e_aes_cbc_hmac_sha256.c | 523 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local 543 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher() 544 maxpad |= (255 - maxpad) >> (sizeof(maxpad) * 8 - 8); in aesni_cbc_hmac_sha256_cipher() 545 maxpad &= 255; in aesni_cbc_hmac_sha256_cipher() 547 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha256_cipher() 555 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha256_cipher() 705 out + len - 1 - maxpad - SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher() 709 for (res = 0, i = 0, j = 0; j < maxpad + SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher() 731 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha256_cipher()
|
/freebsd/crypto/openssl/engines/ |
H A D | e_ossltest.c | 828 unsigned int maxpad, pad; in ossltest_aes128_cbc_hmac_sha1_cipher() local 843 maxpad = len - (SHA_DIGEST_LENGTH + 1); in ossltest_aes128_cbc_hmac_sha1_cipher() 844 if (pad > maxpad) in ossltest_aes128_cbc_hmac_sha1_cipher()
|