Lines Matching refs:length
112 static inline int is_PKCS11_padded(unsigned char *buffer, int length) in is_PKCS11_padded() argument
117 for (i = 2; i < length; i++) in is_PKCS11_padded()
120 if (i < 10 || i == length) in is_PKCS11_padded()
130 static inline int is_PKCS12_padded(unsigned char *buffer, int length) in is_PKCS12_padded() argument
135 for (i = 2; i < length; i++) in is_PKCS12_padded()
138 if ((i < 10) || (i == length)) in is_PKCS12_padded()
174 unsigned short length; in ICAMEX_msg_to_type6MEX_msg() member
197 msg->length = cpu_to_le16(vud_len + 2); in ICAMEX_msg_to_type6MEX_msg()
206 msg->length = cpu_to_le16(2 + vud_len); in ICAMEX_msg_to_type6MEX_msg()
228 ap_msg->length = (size + 3) & -4; in ICAMEX_msg_to_type6MEX_msg()
261 unsigned short length; in ICACRT_msg_to_type6CRT_msg() member
267 msg->length = cpu_to_le16(2 + crt->inputdatalength); in ICACRT_msg_to_type6CRT_msg()
292 ap_msg->length = (size + 3) & -4; in ICACRT_msg_to_type6CRT_msg()
311 unsigned short length; member
386 reply_len = le16_to_cpu(msg->length) - 2; in convert_type86()
461 int length; in zcrypt_pcicc_receive() local
471 length = sizeof(struct type86_reply) + t86r->length - 2; in zcrypt_pcicc_receive()
472 length = min(PCICC_MAX_RESPONSE_SIZE, length); in zcrypt_pcicc_receive()
473 memcpy(msg->message, reply->message, length); in zcrypt_pcicc_receive()
501 ap_msg.length = PAGE_SIZE; in zcrypt_pcicc_modexpo()
541 ap_msg.length = PAGE_SIZE; in zcrypt_pcicc_modexpo_crt()