Ejemplo n.º 1
0
 public void EncodeAdataLength_throws_on_negative_length()
 {
     Exceptions.AssertThrowsInternalError(() => AesCcm.EncodeAdataLength(-1), "Adata length must be positive");
 }
Ejemplo n.º 2
0
 public void EncodeAdataLength_returns_correct_value(int adataLength, string encoded)
 {
     Assert.Equal(encoded.DecodeHex(), AesCcm.EncodeAdataLength(adataLength));
 }