protected override IAEADCrypto CreateCrypto(ReadOnlySpan<byte> key) { return AEADCryptoCreate.Sm4Gcm(key); }
public void Test(string keyHex, string nonceHex, string associatedDataHex, string tagHex, string plainHex, string cipherHex) { var key = keyHex.FromHex(); Test(AEADCryptoCreate.Sm4Gcm(key), nonceHex, associatedDataHex, tagHex, plainHex, cipherHex); }
public void SM4GCMEncrypt() { TestEncrypt(AEADCryptoCreate.Sm4Gcm(_randomKey)); }