Lines Matching full:sm4
473 * For AES @key_size must be either 16 or 32. For SM4 @key_size must be 16.
491 /* OCS SM4 supports 128-bit keys only. */ in ocs_aes_set_key()
494 "%d-bit keys not supported for SM4 cipher\n", in ocs_aes_set_key()
535 * 1 - SM4 in set_ocs_aes_command()
575 * Write the byte length of the last AES/SM4 block of Payload data (without
783 * ocs_aes_op() - Perform AES/SM4 operation.
786 * @cipher: The cipher to use (AES or SM4).
912 * @cipher: The Cipher to use (AES or SM4).
1022 /* Write encrypted tag to AES/SM4 engine. */
1040 /* Write encrypted tag to AES/SM4 engine. */ in ocs_aes_ccm_write_encrypted_tag()
1174 * to the AES/SM4 input buffer. in ocs_aes_ccm_do_adata()
1178 /* Configure the AES/SM4 DMA to fetch the Associated Data */ in ocs_aes_ccm_do_adata()
1221 * AES/SM4 engine to pad the last block of data. in ocs_aes_ccm_encrypt_do_payload()
1252 * AES/SM4 engine to differentiate between encrypted data and in ocs_aes_ccm_decrypt_do_payload()
1291 * @cipher: The Cipher to use (AES or SM4).
1356 * Write the byte length of the last AES/SM4 block of Payload data in ocs_aes_ccm_op()
1367 /* Form block B0 and write it to the AES/SM4 input buffer. */ in ocs_aes_ccm_op()