Lines Matching refs:keylen
47 size_t keylen; member
84 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR()
87 if (inlen <= ctr->keylen) in ctr_XOR()
90 n = inlen - ctr->keylen; in ctr_XOR()
96 ctr->V[i] ^= in[i + ctr->keylen]; in ctr_XOR()
127 if (ctr->keylen != 16) { in ctr_BCC_blocks()
144 num_of_blk = ctr->keylen == 16 ? 2 : 3; in ctr_BCC_init()
227 *p = (unsigned char)((ctr->keylen + 16) & 0xff); in ctr_df()
239 if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX, &outlen, ctr->KX + ctr->keylen, in ctr_df()
247 if (ctr->keylen != 16) in ctr_df()
275 if (ctr->keylen == 16) { in ctr_update()
285 memcpy(ctr->K, out, ctr->keylen); in ctr_update()
286 memcpy(ctr->V, out + ctr->keylen, 16); in ctr_update()
539 if (ctr->keylen > 0) { in drbg_ctr_init_lengths()
540 drbg->min_entropylen = ctr->keylen; in drbg_ctr_init_lengths()
544 const size_t len = ctr->keylen > 0 ? drbg->seedlen : DRBG_MAX_LENGTH; in drbg_ctr_init_lengths()
560 size_t keylen; in drbg_ctr_init() local
566 ctr->keylen = keylen = EVP_CIPHER_get_key_length(ctr->cipher_ctr); in drbg_ctr_init()
584 drbg->strength = keylen * 8; in drbg_ctr_init()
585 drbg->seedlen = keylen + 16; in drbg_ctr_init()