Home
last modified time | relevance | path

Searched refs:blocklen (Results 1 – 9 of 9) sorted by relevance

/openbsd-src/sbin/isakmpd/
H A Dhash.c129 if (len > hash->blocklen) { in hmac_init()
130 /* Truncate key down to blocklen */ in hmac_init()
139 for (i = 0; i < hash->blocklen; i++) in hmac_init()
143 hash->Update(hash->ctx, key, hash->blocklen); in hmac_init()
145 for (i = 0; i < hash->blocklen; i++) in hmac_init()
149 hash->Update(hash->ctx2, key, hash->blocklen); in hmac_init()
125 unsigned int i, blocklen = HMAC_BLOCKLEN; hmac_init() local
/openbsd-src/lib/libcrypto/cms/
H A Dcms_pwri.c231 size_t blocklen = EVP_CIPHER_CTX_block_size(ctx); in kek_unwrap_key() local
235 if (inlen < 2 * blocklen) { in kek_unwrap_key()
239 if (inlen % blocklen) { in kek_unwrap_key()
249 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key()
250 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key()
256 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp + inlen - blocklen, blocklen) in kek_unwrap_key()
258 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key()
288 size_t blocklen = EVP_CIPHER_CTX_block_size(ctx); in kek_wrap_key() local
296 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key()
297 olen *= blocklen; in kek_wrap_key()
[all …]
/openbsd-src/sys/arch/octeon/dev/
H A Doctcrypto.c53 uint16_t blocklen; member
155 .blocklen = 64,
165 .blocklen = 64,
175 .blocklen = 64,
185 .blocklen = 128,
195 .blocklen = 128,
435 memset(bptr + klen, 0, hmac->blocklen - klen); in octcrypto_newsession()
436 for (i = 0; i < hmac->blocklen; i++) in octcrypto_newsession()
441 hmac->transform(block, hmac->blocklen); in octcrypto_newsession()
444 for (i = 0; i < hmac->blocklen; i++) in octcrypto_newsession()
[all …]
/openbsd-src/libexec/tradcpp/
H A Dutils.c123 size_t blocklen; in domalloc() local
125 blocklen = adjustsize(len); in domalloc()
126 ret = malloc(blocklen); in domalloc()
/openbsd-src/sbin/iked/
H A Dikev2_msg.c380 size_t len, ivlen, encrlen, integrlen, blocklen, pldlen, outlen; in ikev2_msg_encrypt_prepare() local
390 blocklen = cipher_length(sa->sa_encr); in ikev2_msg_encrypt_prepare()
393 encrlen = roundup(len + 1, blocklen); in ikev2_msg_encrypt_prepare()
411 size_t len, encrlen, integrlen, blocklen, in ikev2_msg_encrypt() local
434 blocklen = cipher_length(sa->sa_encr); in ikev2_msg_encrypt()
436 encrlen = roundup(len + sizeof(pad), blocklen); in ikev2_msg_encrypt()
575 ssize_t ivlen, encrlen, integrlen, blocklen, in ikev2_msg_decrypt() local
597 blocklen = cipher_length(sa->sa_encr); in ikev2_msg_decrypt()
649 if ((encrlen % blocklen) != 0) { in ikev2_msg_decrypt()
725 size_t ivlen, integrlen, blocklen; in ikev2_check_frag_oversize() local
821 size_t ivlen, integrlen, blocklen; ikev2_send_encrypted_fragments() local
[all...]
/openbsd-src/usr.sbin/unbound/sldns/
H A Dstr2wire.c2043 int i, blocklen = 0; in sldns_str2wire_nsec_buf() local
2048 blocklen = i+1; in sldns_str2wire_nsec_buf()
2050 if(blocklen == 0) in sldns_str2wire_nsec_buf()
2052 if(used+blocklen+2 > *len) in sldns_str2wire_nsec_buf()
2055 rd[used+1] = (uint8_t)blocklen; in sldns_str2wire_nsec_buf()
2056 for(i=0; i<blocklen; i++) { in sldns_str2wire_nsec_buf()
2059 used += blocklen+2; in sldns_str2wire_nsec_buf()
/openbsd-src/sbin/unwind/libunbound/sldns/
H A Dstr2wire.c2043 int i, blocklen = 0; in sldns_str2wire_nsec_buf() local
2048 blocklen = i+1; in sldns_str2wire_nsec_buf()
2050 if(blocklen == 0) in sldns_str2wire_nsec_buf()
2052 if(used+blocklen+2 > *len) in sldns_str2wire_nsec_buf()
2055 rd[used+1] = (uint8_t)blocklen; in sldns_str2wire_nsec_buf()
2056 for(i=0; i<blocklen; i++) { in sldns_str2wire_nsec_buf()
2059 used += blocklen+2; in sldns_str2wire_nsec_buf()
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dvalops.c173 struct value *blocklen; in value_allocate_space_in_inferior() local
176 blocklen = value_from_longest (builtin_type_int, (LONGEST) len); in value_allocate_space_in_inferior()
177 val = call_function_by_hand (val, 1, &blocklen); in value_allocate_space_in_inferior()
/openbsd-src/gnu/llvm/llvm/docs/
H A DBitCodeFormat.rst211 specifies the abbrev id width for the sub-block. The ``blocklen`` value is a