protected override IAEADCrypto CreateCrypto(ReadOnlySpan<byte> key)
	{
		return AEADCryptoCreate.Sm4Gcm(key);
	}
示例#2
0
    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);
    }
示例#3
0
 public void SM4GCMEncrypt()
 {
     TestEncrypt(AEADCryptoCreate.Sm4Gcm(_randomKey));
 }