Home
last modified time | relevance | path

Searched refs:sha_off (Results 1 – 4 of 4) sorted by relevance

/third_party/openssl/crypto/evp/
De_aes_cbc_hmac_sha1.c415 sha_off = 0; in aesni_cbc_hmac_sha1_cipher() local
419 sha_off = SHA_CBLOCK - key->md.num; in aesni_cbc_hmac_sha1_cipher()
438 if (plen > (sha_off + iv) in aesni_cbc_hmac_sha1_cipher()
439 && (blocks = (plen - (sha_off + iv)) / SHA_CBLOCK)) { in aesni_cbc_hmac_sha1_cipher()
440 SHA1_Update(&key->md, in + iv, sha_off); in aesni_cbc_hmac_sha1_cipher()
443 &key->md, in + iv + sha_off); in aesni_cbc_hmac_sha1_cipher()
446 sha_off += blocks; in aesni_cbc_hmac_sha1_cipher()
452 sha_off = 0; in aesni_cbc_hmac_sha1_cipher()
455 sha_off += iv; in aesni_cbc_hmac_sha1_cipher()
456 SHA1_Update(&key->md, in + sha_off, plen - sha_off); in aesni_cbc_hmac_sha1_cipher()
[all …]
De_aes_cbc_hmac_sha256.c430 sha_off = 0; in aesni_cbc_hmac_sha256_cipher() local
434 sha_off = SHA256_CBLOCK - key->md.num; in aesni_cbc_hmac_sha256_cipher()
467 plen > (sha_off + iv) && in aesni_cbc_hmac_sha256_cipher()
468 (blocks = (plen - (sha_off + iv)) / SHA256_CBLOCK)) { in aesni_cbc_hmac_sha256_cipher()
469 SHA256_Update(&key->md, in + iv, sha_off); in aesni_cbc_hmac_sha256_cipher()
472 ctx->iv, &key->md, in + iv + sha_off); in aesni_cbc_hmac_sha256_cipher()
475 sha_off += blocks; in aesni_cbc_hmac_sha256_cipher()
481 sha_off = 0; in aesni_cbc_hmac_sha256_cipher()
484 sha_off += iv; in aesni_cbc_hmac_sha256_cipher()
485 SHA256_Update(&key->md, in + sha_off, plen - sha_off); in aesni_cbc_hmac_sha256_cipher()
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_cbc_hmac_sha1_hw.c382 size_t sha_off = SHA_CBLOCK - sctx->md.num; in aesni_cbc_hmac_sha1_cipher() local
399 if (plen > (sha_off + iv) in aesni_cbc_hmac_sha1_cipher()
400 && (blocks = (plen - (sha_off + iv)) / SHA_CBLOCK)) { in aesni_cbc_hmac_sha1_cipher()
401 sha1_update(&sctx->md, in + iv, sha_off); in aesni_cbc_hmac_sha1_cipher()
404 &sctx->md, in + iv + sha_off); in aesni_cbc_hmac_sha1_cipher()
407 sha_off += blocks; in aesni_cbc_hmac_sha1_cipher()
413 sha_off = 0; in aesni_cbc_hmac_sha1_cipher()
415 sha_off += iv; in aesni_cbc_hmac_sha1_cipher()
416 sha1_update(&sctx->md, in + sha_off, plen - sha_off); in aesni_cbc_hmac_sha1_cipher()
Dcipher_aes_cbc_hmac_sha256_hw.c405 size_t sha_off = SHA256_CBLOCK - sctx->md.num; in aesni_cbc_hmac_sha256_cipher() local
436 plen > (sha_off + iv) && in aesni_cbc_hmac_sha256_cipher()
437 (blocks = (plen - (sha_off + iv)) / SHA256_CBLOCK)) { in aesni_cbc_hmac_sha256_cipher()
438 sha256_update(&sctx->md, in + iv, sha_off); in aesni_cbc_hmac_sha256_cipher()
442 &sctx->md, in + iv + sha_off); in aesni_cbc_hmac_sha256_cipher()
445 sha_off += blocks; in aesni_cbc_hmac_sha256_cipher()
451 sha_off = 0; in aesni_cbc_hmac_sha256_cipher()
453 sha_off += iv; in aesni_cbc_hmac_sha256_cipher()
454 sha256_update(&sctx->md, in + sha_off, plen - sha_off); in aesni_cbc_hmac_sha256_cipher()