...

Source file src/github.com/ProtonMail/go-crypto/ocb/rfc7253_test_vectors_suite_b.go

Documentation: github.com/ProtonMail/go-crypto/ocb

     1  package ocb
     2  
     3  // Second set of test vectors from https://tools.ietf.org/html/rfc7253
     4  var rfc7253TestVectorTaglen96 = struct {
     5  	key, nonce, header, plaintext, ciphertext string
     6  }{"0F0E0D0C0B0A09080706050403020100",
     7  	"BBAA9988776655443322110D",
     8  	"000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627",
     9  	"000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627",
    10  	"1792A4E31E0755FB03E31B22116E6C2DDF9EFD6E33D536F1A0124B0A55BAE884ED93481529C76B6AD0C515F4D1CDD4FDAC4F02AA"}
    11  
    12  var rfc7253AlgorithmTest = []struct {
    13  	KEYLEN, TAGLEN int
    14  	OUTPUT         string
    15  }{
    16  	{128, 128, "67E944D23256C5E0B6C61FA22FDF1EA2"},
    17  	{192, 128, "F673F2C3E7174AAE7BAE986CA9F29E17"},
    18  	{256, 128, "D90EB8E9C977C88B79DD793D7FFA161C"},
    19  	{128, 96, "77A3D8E73589158D25D01209"},
    20  	{192, 96, "05D56EAD2752C86BE6932C5E"},
    21  	{256, 96, "5458359AC23B0CBA9E6330DD"},
    22  	{128, 64, "192C9B7BD90BA06A"},
    23  	{192, 64, "0066BC6E0EF34E24"},
    24  	{256, 64, "7D4EA5D445501CBE"},
    25  }
    26  

View as plain text