Lines Matching full:cipher
88 * Convert from a software cipher mode value to the corresponding value
126 * spu2_cipher_xlate() - Convert a cipher {alg/mode/type} triple to a SPU2
127 * cipher type and mode.
128 * @cipher_alg: [in] cipher algorithm value from software enumeration
129 * @cipher_mode: [in] cipher mode value from software enumeration
130 * @cipher_type: [in] cipher type value from software enumeration
131 * @spu2_type: [out] cipher type value used by spu2 hardware
132 * @spu2_mode: [out] cipher mode value used by spu2 hardware
146 flow_log("Invalid cipher mode %d\n", cipher_mode); in spu2_cipher_xlate()
187 flow_log("Invalid cipher alg %d or type %d\n", in spu2_cipher_xlate()
227 * @ciph_type: [in] cipher type value from software enumeration
329 packet_log(" Cipher type: %s\n", ciph_name); in spu2_dump_fmd_ctrl0()
334 packet_log(" Cipher mode: %s\n", ciph_mode_name); in spu2_dump_fmd_ctrl0()
346 packet_log(" cipher first\n"); in spu2_dump_fmd_ctrl0()
362 packet_log(" Cipher pad: %#2llx\n", in spu2_dump_fmd_ctrl0()
399 packet_log(" Cipher key len %u\n", ciph_key_len); in spu2_dump_fmd_ctrl1()
490 packet_log(" Cipher Key Length %u bytes\n", ciph_key_len); in spu2_dump_omd()
502 packet_log(" Cipher IV Length %u bytes\n", ciph_iv_len); in spu2_dump_omd()
503 packet_dump(" cipher IV: ", ptr, ciph_iv_len); in spu2_dump_omd()
547 * @spu2_type: Cipher algorithm
548 * @spu2_mode: Cipher mode
549 * @cipher_key_len: Length of cipher key, in bytes
550 * @cipher_iv_len: Length of cipher initialization vector, in bytes
604 * @cipher_type: cipher algorithm
605 * @cipher_mode: cipher mode
647 * @cipher_key_len: Length of cipher key, in bytes
653 * @cipher_iv_len: Length of input cipher IV, in bytes
729 * @cipher_key_len: Length of cipher key, in bytes
730 * @cipher_iv_len: Length of cipher IV, in bytes
771 * SPU message for a given cipher and hash alg context.
772 * @cipher_alg: The cipher algorithm
773 * @cipher_mode: The cipher mode
867 * @cipher_mode: cipher mode
889 * @cipher_mode: cipher mode
933 * @cipher_parms: Parameters related to cipher algorithm
986 * On SPU 2, aes gcm cipher first on encrypt, auth first on in spu2_create_request()
1000 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg, in spu2_create_request()
1021 /* Convert to spu2 values for cipher alg, hash alg */ in spu2_create_request()
1028 * need to configure hardware to use hash key rather than cipher key in spu2_create_request()
1030 * GCM cipher with 0 size payload is not permitted. in spu2_create_request()
1053 flow_log("spu2 cipher type %s, cipher mode %s\n", in spu2_create_request()
1116 * @cipher_parms: Parameters describing cipher request
1135 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg, in spu2_cipher_req_init()
1147 flow_log("spu2 cipher type %s, cipher mode %s\n", in spu2_cipher_req_init()
1158 /* Write cipher key to OMD */ in spu2_cipher_req_init()
1171 * block cipher request.
1175 * @cipher_parms: Parameters describing cipher operation to be performed
1195 flow_log(" cipher alg: %u, cipher_type: %u\n", cipher_parms->alg, in spu2_cipher_req_finish()
1216 /* cipher iv provided so put it in here */ in spu2_cipher_req_finish()
1344 * @cipher_parms: (pointer to) cipher parmaeters, includes IV buf & IV len