Lines Matching refs:blocklen_bytes

28 			   const struct drbg_string *in, u8 blocklen_bytes)  in drbg_kcapi_sym()  argument
31 BUG_ON(in->len < blocklen_bytes); in drbg_kcapi_sym()
40 u8 blocklen_bytes, in drbg_ctr_bcc() argument
47 drbg_string_fill(&data, out, blocklen_bytes); in drbg_ctr_bcc()
57 if (blocklen_bytes == cnt) { in drbg_ctr_bcc()
59 drbg_kcapi_sym(aesctx, out, &data, blocklen_bytes); in drbg_ctr_bcc()
69 drbg_kcapi_sym(aesctx, out, &data, blocklen_bytes); in drbg_ctr_bcc()
116 u8 blocklen_bytes, in crypto_drbg_ctr_df() argument
124 unsigned char *iv = pad + blocklen_bytes; in crypto_drbg_ctr_df()
125 unsigned char *temp = iv + blocklen_bytes; in crypto_drbg_ctr_df()
142 memset(pad, 0, blocklen_bytes); in crypto_drbg_ctr_df()
143 memset(iv, 0, blocklen_bytes); in crypto_drbg_ctr_df()
144 keylen = statelen - blocklen_bytes; in crypto_drbg_ctr_df()
160 padlen = (inputlen + sizeof(L_N) + 1) % (blocklen_bytes); in crypto_drbg_ctr_df()
163 padlen = blocklen_bytes - padlen; in crypto_drbg_ctr_df()
173 drbg_string_fill(&S1, iv, blocklen_bytes); in crypto_drbg_ctr_df()
182 while (templen < (keylen + (blocklen_bytes))) { in crypto_drbg_ctr_df()
191 blocklen_bytes, keylen); in crypto_drbg_ctr_df()
194 templen += blocklen_bytes; in crypto_drbg_ctr_df()
199 drbg_string_fill(&cipherin, X, blocklen_bytes); in crypto_drbg_ctr_df()
212 drbg_kcapi_sym(aesctx, X, &cipherin, blocklen_bytes); in crypto_drbg_ctr_df()
213 blocklen = (blocklen_bytes < in crypto_drbg_ctr_df()
215 blocklen_bytes : in crypto_drbg_ctr_df()
222 memset(iv, 0, blocklen_bytes); in crypto_drbg_ctr_df()
223 memset(temp, 0, statelen + blocklen_bytes); in crypto_drbg_ctr_df()
224 memset(pad, 0, blocklen_bytes); in crypto_drbg_ctr_df()