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