Lines Matching refs:in_len
189 static int crypto_smartbond_check_in_restrictions(uint16_t in_len) in crypto_smartbond_check_in_restrictions() argument
199 if (not_last_in_block && (in_len & 0x7)) { in crypto_smartbond_check_in_restrictions()
203 if (in_len & 0xF) { in crypto_smartbond_check_in_restrictions()
508 if (pkt->out_buf_max < pkt->in_len) { in crypto_smartbond_cipher_ecb_handler()
518 if (pkt->in_len > 16) { in crypto_smartbond_cipher_ecb_handler()
525 ret = crypto_smartbond_check_in_restrictions(pkt->in_len); in crypto_smartbond_cipher_ecb_handler()
532 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ecb_handler()
552 pkt->out_len = pkt->in_len; in crypto_smartbond_cipher_ecb_handler()
573 if ((is_op_encryption && pkt->out_buf_max < (pkt->in_len + 16)) || in crypto_smartbond_cipher_cbc_handler()
574 pkt->out_buf_max < (pkt->in_len - 16)) { in crypto_smartbond_cipher_cbc_handler()
594 ret = crypto_smartbond_check_in_restrictions(pkt->in_len); in crypto_smartbond_cipher_cbc_handler()
610 pkt->out_buf + offset, pkt->in_len); in crypto_smartbond_cipher_cbc_handler()
613 pkt->out_buf, pkt->in_len - offset); in crypto_smartbond_cipher_cbc_handler()
636 pkt->out_len = pkt->in_len + offset; in crypto_smartbond_cipher_cbc_handler()
638 pkt->out_len = pkt->in_len - offset; in crypto_smartbond_cipher_cbc_handler()
659 if (pkt->out_buf_max < pkt->in_len) { in crypto_smartbond_cipher_ctr_handler()
671 ret = crypto_smartbond_check_in_restrictions(pkt->in_len); in crypto_smartbond_cipher_ctr_handler()
685 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ctr_handler()
705 pkt->out_len = pkt->in_len; in crypto_smartbond_cipher_ctr_handler()
739 ret = crypto_smartbond_check_in_restrictions(pkt->in_len); in crypto_smartbond_hash_handler()
756 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_hash_handler()
759 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, NULL, pkt->in_len); in crypto_smartbond_hash_handler()