Lines Matching refs:SM4_KEY_SIZE
445 if (unlikely(keys.enckeylen != SM4_KEY_SIZE)) in safexcel_aead_setkey()
3004 if (len != SM4_KEY_SIZE) in safexcel_skcipher_sm4_setkey()
3008 if (memcmp(ctx->key, key, SM4_KEY_SIZE)) in safexcel_skcipher_sm4_setkey()
3011 memcpy(ctx->key, key, SM4_KEY_SIZE); in safexcel_skcipher_sm4_setkey()
3012 ctx->key_len = SM4_KEY_SIZE; in safexcel_skcipher_sm4_setkey()
3056 .min_keysize = SM4_KEY_SIZE,
3057 .max_keysize = SM4_KEY_SIZE,
3093 .min_keysize = SM4_KEY_SIZE,
3094 .max_keysize = SM4_KEY_SIZE,
3146 .min_keysize = SM4_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
3147 .max_keysize = SM4_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,