Lines Matching refs:ck_size
900 int ck_size = 0; in chcr_keyctx_ck_size() local
903 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_keyctx_ck_size()
905 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_keyctx_ck_size()
907 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_keyctx_ck_size()
909 ck_size = 0; in chcr_keyctx_ck_size()
911 return ck_size; in chcr_keyctx_ck_size()
931 unsigned int ck_size, context_size; in chcr_aes_cbc_setkey() local
939 ck_size = chcr_keyctx_ck_size(keylen); in chcr_aes_cbc_setkey()
940 alignment = ck_size == CHCR_KEYCTX_CIPHER_KEY_SIZE_192 ? 8 : 0; in chcr_aes_cbc_setkey()
947 ablkctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KEY, in chcr_aes_cbc_setkey()
962 unsigned int ck_size, context_size; in chcr_aes_ctr_setkey() local
969 ck_size = chcr_keyctx_ck_size(keylen); in chcr_aes_ctr_setkey()
970 alignment = (ck_size == CHCR_KEYCTX_CIPHER_KEY_SIZE_192) ? 8 : 0; in chcr_aes_ctr_setkey()
976 ablkctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KEY, in chcr_aes_ctr_setkey()
992 unsigned int ck_size, context_size; in chcr_aes_rfc3686_setkey() local
1006 ck_size = chcr_keyctx_ck_size(keylen); in chcr_aes_rfc3686_setkey()
1007 alignment = (ck_size == CHCR_KEYCTX_CIPHER_KEY_SIZE_192) ? 8 : 0; in chcr_aes_rfc3686_setkey()
1013 ablkctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KEY, in chcr_aes_rfc3686_setkey()
3424 unsigned char ck_size, mk_size; in chcr_ccm_common_setkey() local
3429 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_ccm_common_setkey()
3432 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_ccm_common_setkey()
3435 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_ccm_common_setkey()
3441 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, mk_size, 0, 0, in chcr_ccm_common_setkey()
3491 unsigned int ck_size; in chcr_gcm_setkey() local
3509 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_gcm_setkey()
3511 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_gcm_setkey()
3513 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_gcm_setkey()
3524 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_gcm_setkey()
3554 unsigned char ck_size = 0; in chcr_authenc_setkey() local
3585 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_authenc_setkey()
3587 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_authenc_setkey()
3589 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_authenc_setkey()
3656 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, param.mk_size, in chcr_authenc_setkey()
3682 unsigned char ck_size = 0; in chcr_aead_digest_null_setkey() local
3704 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_aead_digest_null_setkey()
3706 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_aead_digest_null_setkey()
3708 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_aead_digest_null_setkey()
3722 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KEY, 0, in chcr_aead_digest_null_setkey()