Searched refs:blocklen (Results 1 – 5 of 5) sorted by relevance
| /freebsd-13.1/sys/kgssapi/krb5/ |
| H A D | kcrypto_aes.c | 182 size_t blocklen = 16, plen; in aes_encrypt() local 200 plen = len % blocklen; in aes_encrypt() 201 if (len == blocklen) { in aes_encrypt() 215 off = skip + len - 2 * blocklen; in aes_encrypt() 218 m_copyback(inout, off + blocklen, blocklen, last2.cn_1); in aes_encrypt() 240 for (i = plen; i < blocklen; i++) in aes_encrypt() 253 size_t blocklen = 16, plen; in aes_decrypt() local 270 plen = len % blocklen; in aes_decrypt() 271 if (len == blocklen) { in aes_decrypt() 282 off = skip + len - 2 * blocklen; in aes_decrypt() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/cms/ |
| H A D | cms_pwri.c | 180 size_t blocklen = EVP_CIPHER_CTX_block_size(ctx); in kek_unwrap_key() local 183 if (inlen < 2 * blocklen) { in kek_unwrap_key() 187 if (inlen % blocklen) { in kek_unwrap_key() 196 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key() 197 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key() 204 tmp + inlen - blocklen, blocklen) in kek_unwrap_key() 206 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key() 235 size_t blocklen = EVP_CIPHER_CTX_block_size(ctx); in kek_wrap_key() local 242 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key() 243 olen *= blocklen; in kek_wrap_key() [all …]
|
| /freebsd-13.1/sys/netinet/ |
| H A D | sctp_auth.c | 919 uint32_t blocklen; in sctp_hmac() local 938 if (keylen > blocklen) { in sctp_hmac() 947 memset(ipad, 0, blocklen); in sctp_hmac() 948 memset(opad, 0, blocklen); in sctp_hmac() 979 uint32_t blocklen; in sctp_hmac_m() local 998 if (keylen > blocklen) { in sctp_hmac_m() 1007 memset(ipad, 0, blocklen); in sctp_hmac_m() 1008 memset(opad, 0, blocklen); in sctp_hmac_m() 1061 uint32_t blocklen; in sctp_compute_hmac() local 1078 if (key->keylen > blocklen) { in sctp_compute_hmac() [all …]
|
| /freebsd-13.1/sys/contrib/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/ |
| H A D | aead_aes256gcm_aesni.c | 560 unsigned int blocklen = 16; in crypto_aead_aes256gcm_encrypt_detached_afternm() local 562 if (i + (unsigned long long) blocklen > adlen) { in crypto_aead_aes256gcm_encrypt_detached_afternm() 563 blocklen = (unsigned int) (adlen - i); in crypto_aead_aes256gcm_encrypt_detached_afternm() 565 addmul(accum, ad + i, blocklen, H); in crypto_aead_aes256gcm_encrypt_detached_afternm() 700 unsigned int blocklen = 16; in crypto_aead_aes256gcm_decrypt_detached_afternm() local 701 if (i + (unsigned long long) blocklen > adlen) { in crypto_aead_aes256gcm_decrypt_detached_afternm() 702 blocklen = (unsigned int) (adlen - i); in crypto_aead_aes256gcm_decrypt_detached_afternm() 704 addmul(accum, ad + i, blocklen, H); in crypto_aead_aes256gcm_decrypt_detached_afternm()
|
| /freebsd-13.1/contrib/unbound/sldns/ |
| H A D | str2wire.c | 1999 int i, blocklen = 0; in sldns_str2wire_nsec_buf() local 2004 blocklen = i+1; in sldns_str2wire_nsec_buf() 2006 if(blocklen == 0) in sldns_str2wire_nsec_buf() 2008 if(used+blocklen+2 > *len) in sldns_str2wire_nsec_buf() 2011 rd[used+1] = (uint8_t)blocklen; in sldns_str2wire_nsec_buf() 2012 for(i=0; i<blocklen; i++) { in sldns_str2wire_nsec_buf() 2015 used += blocklen+2; in sldns_str2wire_nsec_buf()
|