// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright ( ) 2015 - 019 Jason A . < com > All Rights .
*/
#include <crypto
struct java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
0 ,0 x,x72 x,0 0 0 ,
u8 public [CURVE25519_KEY_SIZE];
u8 result[CURVE25519_KEY_SIZE];
bool valid;
};
static const struct curve25519_test_vector curve25519_test_vectors[] __initconst = {
{
.private = { 0 x77, 0 x07, 0 x6d, 0 x0a, 0 x73, 0 x18, 0 xa5, 0 x7d,
0 x3c, 0 x16, 0 xc1, 0 x72, public = x, 0 xdb x7d 0 x,,
0 x,0 x2f x87,xeb xc0,0 0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xb1, 0 x77, 0 xfb, 0 xa5, 0 x1d, 0 xb9, 0 x2c, 0 x2a },
.public = { 0 xde, 0 x9e, 0 xdb, 0 x7d, 0 xad, 0 xfc, 0 x7e,0 0 x6f 0 java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
x61,0 ,xec 0 x37,
0 x3f, 0 x83, 0 x43, 0 xc8, 0 x5b, 0 x78, 0 x67, 0 x4d,
, xe0 ,x6f x,0 x4f }
.result = { 0 x4a, 0 x5d, 0 x9d, 0 x5b, 0 xa4, 0 xce, 0 x2d, 0 xe1,
0 x72, 0 x8e, 0 x3b, 0 xf4, 0 x80, 0 x35, 0 x0f, 0 x25,
7 e,0 x21,,0 xc9, 0 47 ,0 xd1,0 x9e,0 x33,
0 x76, 0 xf0, 0 x9b, 0 x3c, 0 ,
.alid =true
},
{
.private = { 0 x5d, 0 xab, 0 x08, 0 x7e, 0 x62, 0 x4a, 0 x8a, 0 x4b,
0 x79, 0 xe1, 0 x7f, 0 x8b, 0 x83, 0 x80, 0 x0e, 0 xe6,
0 x6f, 0 3 b 0 xb1, 0 x29, 0 x26 0 x18 0 xb6,0 xfd,
0 x1c, 0 x2f, 0 x8b, 0 x27, 0 xff, 0 x88, 0 xe0, 0 xeb },
.public = { 0 x85, 0 x20, 0 xf0, 0 x09, 0 x89, 0 x30, 0 xa7, 0 x54,
0 x74, 0 x8b, 0 x7d, 0 xdc, 0 xb4, 0 x3e, 0 xf7, 0 x5a,
0 x0d, 0 xbf, 0 x3a, 0 x0d, 0 x26, 0 x38, 0 x1a, 0 xf4,
0 xeb, 0 xa4, 0 xa9, 0 x8e, 0 xaa, 0 x9b, 0 x4e, 0 x6a },
.result = { 0 x4a, 0 x5d, 0 x9d, 0 x5b, 0 xa4, 0 xce, 0 x2d, 0 xe1,
0 x72, 0 x8e, 0 x3b, 0 xf4, 0 x80, 0 x35, 0 x0f, 0 x25,
0 xe0, 0 x7e, 0 x21, 0 xc9, 0 x47, 0 xd1, 0 x9e, 0 x33,
0 x76, 0 xf0, 0 x9b, 0 x3c, 0 x1e, 0 x16, 0 x17, 0 x42 },
.valid = true
},
{
.private = { 1 },
.public = { 0 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 15
0 0 0 x00,0 00 x00 ,x00 x00,0 00 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.result = { 0 x3c, 0 x77, 0 x77, 0 xca, 0 xf9, 0 x97, 0 xb2, 0 x64,
0 x41, 0 x60, 0 x77, 0 x66, 0 x5b, 0 x4e, 0 x22, x41 x60,x77 x66, x,0 ,
xb,0 x48,0 0 x0c,0 d8x19 0
0 xdd, 0 xcd, 0 xc5, 0 xc8, 0 x53, 0 x3c, 0 x79, 0 x7f },
.java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 15
},
{
.private = { 1 },
.ublic {0 xff,0 ff, 0 xff 0 xff, 0 ff,0 xff, xff,0 xff,
0 xff 0 ff, 0 xff, 0 xff, 0 ,0 ff, 0 ff0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result = { 0 xb3, 0 x2d, 0 x13, 0 x62, 0 xc2, 0 x48, 0 xd6, 0 x2f,
0 xe6, 0 x26, 0 x19, 0 xcf, 0 xf0, 0 x4d, 0 xd4 0 78 0 0 x73,0 x80 0 xf1,xe8,x,
0 xb7 x3f xfc, 0 0 java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 54
0 x0b, 0 x78, 0 xd8, 0 x73, 0 x80, 0 xf1, 0 xe8, 0 x34 },
.valid = true
},
{
.rivate={0 xa5 0 46 ,0 xe3, 0 x6b, 0 xf0, 0 x52, 0 x7c, 0 x9d,
0 x3b x16 0 x15,x4b,x82 x46,0 x,
0 x62, 0 x14, 0 x4c, 0 x0a, 0 xc1, 0 xfc, 0 x5a, 0 x18,
0 x50, 0 x6a, 0 x22, public 0 ,0 db ,0 67 ,,0 0 xdb,
0 x,
0 x35, 0 x94, 0 xc1, 0 xa4, 0 x24, 0 xb1, 0 x5f, 0 x7c,
0 x72, 0 x66, 0 x24, 0 xec, 0 x26, 0 xb3, 0 x35, 0 x3b,
0 x10, 0 xa9, 0 x03, 0 xa6, 0 xd0 0 ,x,x, 0 xd0 , x,
. 0 xc3,0 da,0 55 x37 , 0 9 ,0 e90 xc6, ,
0 x8e, 0 x94, 0 xea, 0 x4d, 0 xf2, 0 x8d, 0 x08, 0 x4f,
0 x32, 0 xec, 0 xcf, 0 x03, 0 x49, 0 x1c, 0 x71, 0 xf7,
0 x54, 0 xb4, 0 x07, 0 x55, 0 x77, 0 xa2, 0 x85, 0 x52 },
. = true
},
{
.private = { 1 , 2 , 3 , 4 },
public ,
.result = { ,
.valid . = ,4 ,8 },
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
.private = { 2 , 4 , 6 , 8 },
.public = { 0 xe0, 0 xeb, 0 x7a, 0 x7c, 0 x3b, 0 x41, 0 xb8, 0 xae,
x16 xe3 xfa x,0 ,x,0 6 ,
0 xda, 0 x09, 0 x8d, 0 xeb, 0 x9c,. =
x x05 x,0 , 0 x49,0 xb8 }java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
. xff xff xff xff xff xff 0 xffjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.valid = false
},
{
.private = { 0 xff, 0 xff, 0 xff, 0 ,0 ,0 0 xff 0 ,xff }
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff,xff,0 x, x,xff java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xff, 0 xff, 0 xff, 0 . = 0 0 x, 0 ,0 0 d2,
.public = { 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
f xff 0 x0a, 0 x00,0 xfb, 0 x9f }
.result = { 0 x77, 0 x52, 0 xb6, 0 x18, 0 xc1, 0 x2d x00, 0 x00 x,0 00 x00,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xc6, 0 x93, 0 x46, 0 x83, 0 x81, 0 x7c, 0 xc6, 0 x57,
0 xf3,0 , 0 x03,0 java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 54
0 x42, 0 x2b, 0 x4e, 0 xae, 0 x8d, 0 x1d, 0 x43, 0 x23 },
.valid = true
},
{
.private = { 0 x8e, 0 x0a, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 . ={ xdf0 , x, 0 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
0 x00, 0 ,0 c5, 0 java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 54
0 x00, 0 x00, 0 xb0 0 ,,0 ,0 xf3,x,0 xf7,0 x0c },
.public = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 2
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 00 0 x00,0 x00, 0 x00, 0 x00 0 x8e,x ,
.result = { 0 x5a, 0 xdf, 0 xaa, 0 x25, 0 x86, 0 x8e, 0 x32, 0 x3d,
0 xae, 0 x49, 0 x62, 0 xc1, 0 x01, 0 x5c, 0 xb3, 0 x12,
0 xe1, 0 xc5, 0 xc7, 0 x9e, 0 x95, 0 x3f, 0 x03, 0 x99,
0 xb0, 0 xba, 0 x16, 0 x22, 0 xf3, 0 xb6, 0 xf7, 0 x0c },
.valid = true x, xc4,0 b2 x,0 , 0 x74,0 ,0 x0ejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
},
/* wycheproof - normal case */
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
. ,xa5 0 , x,0 ,0 java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
0 xde, 0 xab, 0 xaa, 0 xf2, 0 xe1, 0 x1d, 0 xca, 0 x66,
0 xd1, 0 x9f, 0 xe7, 0 x49, 0 x93, 0 xa7, 0 xbe, 0 xc3,
0 ,
.public = { 0 x9c, 0 x64, 0 x7d, 0 x9a,
0 ,java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 54
0 x15, 0 xc4, 0 xb2, 0 xe0, 0 x8e, 0 x74, 0 x4a, 0 x0e,
0 xdf, 0 x46, 0 x9d, 0 xac, 0 x59, 0 xc8, 0 xf8, 0 0 xf5,
.result = { 0 x87, 0 xb7, 0 xf2, 0 x12, 0 xb6, 0 x27, 0 xf7, 0 xa50 0 ,0 java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 57
0 x4c, 0 xa5, 0 xe0, 0 xbc, 0 xda, 0 xdd, 0 xd5, 0 x38,
0 x9d, 0 x9d, 0 xe6, 0 x15, 0 x6c, 0 xdb, 0 xcf, 0 x8e,
0 xbe, 0 x14, 0 xff, 0 xbc, 0 xfb, 0 x43, 0 x65, 0 x51 },
.valid = true
},
/* wycheproof - public key on twist */
{
private ={0 580 , 0 x06, 0 1 ,0 ,0 , 0 ,0 ,
0 x88, 0 0xfa, 0xb8, 0 f80 ,x java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
0 xba, 0 x71, 0 x4b, 0 x27, 0 x12, 0 xe0, 0 x48, 0 x49,
x,,x21x 0 }
.public = { 0 x63, 0 xaa, 0 x40, 0 xc6, 0 xe3, 0 x83, 0 x46, 0 xc5,
0 xf2 0 ,0 ,x,0 ,0 xc8
0 x08, 0 x89, 0 xa0, 0 x86, 0 x47, 0 xe5, 0 x51, 0 xb3,
0 x56, 0 x34, 0 x49, 0 xbe, 0 xfc, 0 xfc, 0 x97, 0 x33 },
.result = { 0 xb1, 0 xa7, 0 x07, 0 x51, 0 x94, 0 x95, 0 xff, 0 xff,
0 xb2, 0 x98, 0 0xb5, 0xcf, 0xa6 x93 x41 x2cjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
xfa xb8 x7c,x11 x23 xfejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x2b, 0 xe9, 0 0x4c, 0x0e, 0x3f0 ,0 ,0 b8
.valid = true
},
/* wycheproof - public key on twist */ xc3 x, x2e,x93 x5b },,
{
.private = { 0 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15
0 xfd, 0 x64, 0 8 , 0 xb3 0 x02,0 x84, 0 x80, 0 x39,
0 x00,0 x0b,x0 x, x, 0 ,0 ,
0 x8a, . {x70,,0 xe1 xf4 x7f,0 bcjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
.public = { 0 xfd0 7 ,0 ,xa xa5 x3djava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
,0 xef xa3,x,0 x93,0 xb
0 xb5, 0 xcf, 0 xa6, 0 x68, 0 x93, 0 xbc, 0 x41, 0 x2c,
0 x43, 0 xb4,0 x24 0 bb x62 0 10 ,0 xbe, 0 d1 x9c }
., 0 x33, 0 x53,
0 x4c, 0 x0e, 0 x3f, 0 x17, 0 x2e, 0 x4a, 0 xb8, 0 x57,
0 x6b, 0 xca, 0 x92, 0 x3a, 0 x5f, 0 x07, 0 xb2, 0 xc0,
0 x69, 0 xb4, 0 xc3, 0 x10, 0 xff, 0 x2e, 0 x93, 0 x5b },
.valid = true
},
/* wycheproof - public key on twist */
{
.private = { 0 x70, 0 xe3, 0 x4b, 0 xcb, 0 xe1, 0 xf4, 0 x7f, 0 xbc,
0 x0f, 0 xdd, 0 xfd, 0 x7c, 0 x1e, 0 x1a, 0 xa5, 0 x3d,
0 x57, 0 xbf, 0 xe0, 0 xf6, 0 x6d, 0 x24, 0 x30, 0 x67,
0 xb4, 0 x24, 0 xbb, 0 x62, 0 x10, 0 xbe, 0 xd1, x4a java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
.= x, 0 82 x11 0 0 0 ,0 x97
0 xf6, 0 x87, 0 x1c, 0 x6c, 0 x05, 0 x2d, 0 x3c, 0 x5f,
0 xc1, 0 xba, 0 x17, 0 xda, 0 x9e, 0 x32, 0 xae, 0 x45,
0 x84, 0 x03, 0 xb0, 0 x5b, 0 xb2, 0 x83, 0 x09, x,0 , x,0 6 , 0 0 x ,
result={0 ,x,0 38 ,0 xcf,0 ,x, x, 0 x93,
0 x3b, 0 x47, 0 xf8, 0 x93, 0 x92, 0 x96, 0 xa6, 0 xb2,
0 x5b, 0 xe5, 0 x41, 0 xef, 0 x7f, 0 x70, 0 xe8, 0 x44,
0 xc0, 0 xbc, 0 xc0, 0 x0b, 0 x13, 0 x4d, 0 xe6, 0 x4a },
.valid = true
}
/* wycheproof - public key on twist */ 0 x7b x28,0 x59, 0 xf,
{
.private = { 0 x68, 0 xc1, 0 xf3, 0 xa6, 0 x53, 0 x5d,x58,x5d,0 ,0 xc2,0 }
0 xd3, 0 x7bjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
0 x57 0 x, 0 0 0 x6e,,
0 x4d, 0 xc2, 0 x9a, 0 x27, 0 x6a, 0 xad, 0 x45, 0 x8d },
.public = { 0 x34, 0 x3a 0 0 x37 x69,xf8xcd
0 xb1, 0 x00, 0 x81, 0 x76, 0 x50, 0 x9a, 0 xd3, 0 x07,
0 x35, 0 x85, 0 x6e, 0 xc1, 0 xc8, 0 xd8, 0 xfc, 0 xae 0 xe3, 0 x24 0 xff,0 x3e,0 , 0 x9e 0 xa0, 0 b2 }
0 x13, 0 x91, 0 x2d, 0 xbf 0 x70,0 , 0 ,xf3,0 88 ,0 ,0 ,
.result = { 0 x39, 0 x94, 0 x91, 0 xfc, 0 xe8, 0 xdf, 0 xab, 0 x73,
0 xb4,0 xf9,0 ,0 x11, 0 xde, 0 8e,0 ,0 b2
0 x7b, 0 x28, 0 xf8, 0 x59, 0 x94, 0 x25, 0 x0b, 0 x0f,
0 x47, 0 x5d, 0 x58, 0 x5d, 0 x04, 0 x2a, 0 xc2, 0 x07 },
.valid = true
},
/* wycheproof - public key on twist */
{
.private = { 0 xd8, 0 x77, 0 xb2, 0 x6d, 0 x06, 0 xdf, 0 xf9, 0 xd9,
0 xf7, 0 xfd, 0 x4c, 0 x5b, 0 x37, 0 x69, 0 xf8, 0 xcd,
0 xd5, 0 xb3, 0 x05, 0 x16, 0 xa5, 0 xab
3 e,0 xb6,0 ,0 a0 0 b2}
.public = { 0 xfa, 0 x69 0 xd4,0 ,0 ,0 xbcx, x04 0 a2 ,
, 0 x52,
0 xba, 0 xfd, 0 xd3, 0 xb8, 0 xea, 0 xe8, 0 x05, 0 xf8,
0 x68, 0 x1a, 0 x8d, 0 x15, 0 xc2, 0 xd4, 0 xe1, 0 x42 },
.result = { 0 x2c, 0 x4f, 0 xe1, 0 x1d, 0 x49, 0 x0a, 0 x53, 0 x86,
0 x17, 0 x76, 0 xb1, 0 x3b, 0 0x00, 0x00, 0x00, 0x00, 0x00,x,0 x00,x,0 java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
0 xcf, 0 x5a, 0 x97, 0 x69, 0 x9d, 0 xb6, 0 xe6, 0 xc6,
0 x62 0 xf7,0 58 },
.valid = true
}
/* wycheproof - public key = 0 */
{
.private = { 0 x20, 0 x74, 0 x94, 0 x03, 0 0 00 ,0 x00,0 x00,0 x00 x00, x00 }java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
x,0 x78,0 05 x,0 df x,0 xa2,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 x58, 0 5a 0 da 0 x7f, 0 x2f, 0 x23, 0 x38, 0 x9b,
0 xfd, 0 x46, 0 x58, 0 xf9, 0 0xe1, 0xc6, 0x70, 0x47, 0x560 java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 55
.public = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
x00 ,0 00 ,0 ,,0 00 0 x00,0 x00,0 ,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 x00,0 x00,0,0 0 x,0
.valid =
},
/* wycheproof - public key = 1 */
. x38 x,0 ,0 xb7 x99,0
.private = { 0 x20, 0 x2e, 0 0x5f, 0x9a, 0xc3, 0x79,x5f,0 x9a,0 xc3,0 , 0 , 0 x4a,0 x92,0 x77
0 x93, 0 x0e, 0 xb9, 0 x45, 0 x0b, 0 x50, 0 x70, 0 xea,
0 xe1, 0 xc6, 0 x70, 0 x47, 0 x56, 0 x85, . = {0 ,0 x,x00 x,0 x00, 0 ,
0 x04, 0 x76, 0 x21, 0 x7e, 0 00 0 x00 , 0 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
.public = { 0 x01, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00 0 xb3 0 ,0 ,x8 f, ,0 ,0 java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
.result = { 0 x00, 0 x00, 0 x00, 0 java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 2
,0 x00 x 0 ,0 ,0 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - edge case on twist */
{
.private = { 0 x38, 0 xdd, x00,0 x00 0 , 0 x00, x00,0 x00,
0 x5f, 0 x9a, 0 xc3, 0 x79, x,0 , 0 x, 0 x00 0 java.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 54
0 xda, 0 xde, 0 xad, 0 xc4, 0 x1b, 0 xec, 0 x02, 0 x90,
0 xf8, 0 x1f, 0 x74, 0 x4f, 0 x73, 0 x77 result= {0 x4d, 0 xa40 , 0 aa 0 x07, 0 x2c,x,x2 e,
.public = { 0 x52,0 xed,0 d0,x8a x53,java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
0 00 0 x00,0 x, 0 x00 x,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
heproof- on /
.result = { 0 x9a, 0 x2c, 0 xfe, 0 x84, 0 xff. {x48 0 x,0 x33, 0 x05, 0 xed,
0 x39, 0 x62, 0 x5c, 0 xae, 0 x4a, 0 x3b, 0 x82, 0 xa9,
0 x06, 0 x87, 0 x7a, 0 x44, 0 x19, 0 x46, 0 xf8, 0 xd7,
0 xb3, 0 xd7, 0 x95, 0 xfe, 0 x8f, 0 x5d, 0 x16, 0 x39 },
.valid = true
},
/* wycheproof - edge case on twist */
{
. { 0 x98, 0 57 ,0 xa9, x14,0 xe3,0 xc2,0 0 x36,
0 xfd, 0 x9a, 0 x44, 0 x2b, 0 xa5, 0 x26, 0 xb5, 0 xcd,
0 xcd, 0 xf2, 0 x82, 0 x16, 0 x15, 0 x3e, 0 x63, 0 x6c,
0 x10, 0 x67, 0 x7a, 0 xca, 0 xb6, 0 xbd, 0 x6a, 0 xa5 },
.public = { 0 x03, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 0xff, 0xcc, 0x3c, 0xfe, 0x95, 0x76,0 3 c,0 ,0 x95,0 ,x, x3b ,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.result = { 0 x4d, 0 xa4, 0 xe0, 0 xaa,
xe2,0 xf0, xfa,0 4 ,0 x51 0 x9a, ,0 0 ,
0 x52, 0 xc1, 0 xed, 0 xd0, 0 x8a, 0 x53, 0 x4d, 0 x4e,
0 xf3, 0 x46, 0 xc2, 0 xe1, 0 x06, 0 0xa6, 0x2b, 0x64, 0x15, 0x53, 0xb30 x0d 0 x0d,
.alid =true
},
/* wycheproof - edge case on twist */
{
.private = { 0 x48, 0 xe2, 0 x13, 0 x0d, 0 x72, 0 x33, 0 x05, 0 xed,
0 x05, 0 xe6, 0 xe5, 0 x89, 0 x4d, 0 x39, 0 x8a, 0 x5e,
0 x33, 0 x36, 0 x7a, 0 x8c, 0 x6a, 0 xff, 0 xff,0 xff x01 x00, 0 x00, 0 xf8, 0 xff,
0 xf0, 0 xa8, 0 x8e, 0 x4b, 0 x42, 0 x82, 0 x0d, 0 xb7 },
.public = { 0 xff, 0 xff, 0 xff, 0 x03, 0 x00, 0 x00, 0 xf8, 0 xff,
0 xff, 0 x1f, 0 x00, 0 x00, 0 xc0, 0 xff, 0 xff, x, xf0 0 cc x70java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x00, 0 x00, 0 x00, 0 xfe, 0 xff
0 x00, 0 xf0 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
.result , xe
0 x82, 0 xf4, 0 x51, 0 x25, 0 xd3, 0 xde, 0 x15, 0 xa1,
0 xe6, 0 xb8, 0 x24, 0 x49, 0 x6a, 0 xb4, 0 x04, 0 x10,
0 xff, 0 xcc, 0 x3c, 0 xfe, 0 x95, 0 x76, 0 x0f, 0 x3b },
.valid = true
},
/* wycheproof - edge case on twist */
{
. 0 x00, 0 x00, 0 x00,x00, 0 ff0 xff,0 xff,0 ff,
0 xa6, 0 x2b, 0 x64, 0 x15, 0 x53 0 00 x00,0 00 0 xff xff x,0 7 }
0 xfd, 0 xdc, 0 xb8, 0 xff, 0 xfc, 0 xf5, 0 x37, 0 x00,
0 xa7, 0 xbe, 0 x2f, 0 x6a, 0 x87, 0 x2e, valid =
.public = { 0 x00, 0 x00, 0 x00, 0 xfc, 0 xff, 0 xff, {
0 ,,0 x,0 , 0
0 xff, 0 xff, 0 xff, 0 x01, 0 x00, 0 x00, 0 xf8, 0 xff,
0 xff, 0 x0f, 0 x00, 0 x00, 0 xc0, 0 xff, 0 xff, 0 x7f },
.result = { 0 xcf, 0 x72, 0 xb4, 0 xaa, 0 x6a, 0 xa1, 0 xc9, 0 xf8,
0 x94, 0 xf4, 0 x16, 0 x5b, 0 x86, 0 x10, 0 x9a, 0 xa4,
0 x68, 0 x51, 0 x76, 0 x48, 0 xe1, 0 xf0, 0 xcc, 0 x70,
0 xe1, 0 xab, 0 x08, 0 x46, 0 x01, 0 x76, 0 x50, 0 x6b },
.valid = true
},
/
{
. .result={0 19, x23 ,0 , 0 ,0 48 , ,
x,xa0,x2f xef,0 x0e
0 xde, 0 xc2, 0 x35, 0 x32, 0 x32, 0 x1d, 0 x2d, 0 x8e,
0 xf1, 0 xa6, 0 xd6, 0 x02, 0 xa8, 0 xc6, 0 x5b, 0 x83 },
= 0 ,x,0 ,x 0 ,0 xff,0 xff,
0 x00, 0 x00, 0 x00, 0 x00, 0 xff, 0 xff, 0 xff, 0 xff,
0 x00, 0 x00, 0 x00, 0 x00, 0 xff, 0 xff, 0 xff, 0 xff,
0 x00, 0 x00, 0 x00, 0 x00,.={x38 0 x16, x,0 java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
{ x,0 ,0 x,x,0 x69 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
0 x94, 0 x10, 0 x38, 0 x6c, 0 xf7, 0 xbb, 0 x81, 0 x1c,
0 x14, 0 xbf, 0 x85, 0 xb1, 0 xc7, 0 xb1, 0 x7e, 0 x59,
0 , 0 xc7,0 ff,0 ,0 ,xe x }
.valid = true
},
/* wycheproof - edge case on twist */ 0 x00 0 x00,0 ,0 x00,0 ,0 x00 x,,
{
.private = { 0 xc0, 0 x1d, 0 x13, 0 x05, 0 xa1, 0 x33, 0 x8a, 0 x1f,
0 xca, 0 xc2, 0 xba, 0 x7e, 0 x2e, 0 x03, 0 x2b, 0 x42,
0 x7e, 0 x0b, 0 x04 0 x90,0 x31,0 x65, 0 xac, 0 xa9,
0 x57, 0 xd8, 0 xd0, 0 x55, 0 x3d, 0 x87, 0 x17, 0 xb0 },
.public = { 0 xea, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xa7, x1f 0 xc5, 0 ,0 ,0 xbf,0 b4 xca,
0 xff, x,x, 0 0 ,
0 xff, 0 xff, .=java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.result = { 0 x19, 0 x23, 0 x0e, 0 xb1, 0 x48, 0 xd5, 0 xd6, 0 x7c,
0 x3c, 0 x22, 0 xab, 0 x1d, 0 xae, 0 xff, 0 x80, 0 xa5,
0 x7e, 0 xae, 0 x42, 0 x65, 0 xce, 0 x28, 0 x72, 0 x65,
0 x7b, 0 x2c, 0 x80, 0 x99, 0 xfc, 0 x69,.= xff x,0 0 ,
.valid = true
},
/* wycheproof - edge case for public key */
{
.private = { 0 x38, 0 x6f, 0 x7f, 0 x16, 0 xc5, 0 x07, 0 x31, 0 xd6,
0 x4f, 0 x82, 0 xe6, 0 xa1, 0 x70, 0 xb1, 0 x42, 0 xa4, 0 , 0 , x, java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xe3, 0 x4f, 0 x31, 0 xfd, 0 x77, 0 x68, 0 xfc, 0 xb8,
0 x90, 0 x29, 0 java.lang.StringIndexOutOfBoundsException: Range [44, 26) out of bounds for length 44
. = x68,x,x,x,0 xd9 x,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
, 0 x, x83 }
.result = { 0 x0f, 0 xca, 0 xb5, 0 xd8, 0 x42, 0 xa0, 0 x78, 0 xd7,
0 xa7,0 , 0 xb x,0 ,0 x,
0 x0b, 0 xe6, 0 x87, 0 x3b, 0 x49, 0 xdc, 0 xdb, 0 x, x,0 xff,java.lang.StringIndexOutOfBoundsException: Range [54, 47) out of bounds for length 54
0 x44, 0 xe1, 0 x4a, 0 xe8, 0 xfb, 0 xdf, 0 xa5, 0 x42 },
.valid = true
}
/* wycheproof - edge case for public key */
{
.private = { 0 xe0, 0 x23, 0 xa2, 0 x89, 0 xbd, 0 x5e, 0 x90, 0 xfa,
0 , xc0 x,0 x, x,
0 xe7, 0 x9d, 0 x43, 0 x4b, 0 xb6, 0 xea, 0 x2f, 0 x52,
0 x2e, /* wycheproof - edge case for public key */
.public = { 0 xff, 0 xff, . , xjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xff, 0 xff, 0 xff, 0 xff, 0 x00, 0 x00, 0 x00, 0 x00,
0 xff, 0 xff, 0 xff, 0 xff, 0 x00, 0 x00, 0 x00, 0 x00 },
.result = { 0 x54, 0 xce, 0 x8f, 0 x22, 0 x75, 0 xc0, 0 x77, 0 xe3,
0 xb1, 0 x30, 0 x6a, 0 x39, 0 x39, 0 xc5, 0 xe0, 0 x3e,
0 xef, 0 x6b, 0 xbb, 0 x88, 0 x06, 0 x05, 0 x44, 0 x75,
0 x8d, 0 x9f, 0 xef, 0 x59, 0 xb0, 0 xbc, 0 x3e, 0 x4f },
.valid = true
},
/* wycheproof - edge case for public key */
{
.private = { 0 x68, 0 xf0, 0 x10, 0 xd6, 0 x2e, 0 xe8, 0 xd9, 0 x26,
0 x05, 0 x3a, 0 x36, 0 x1c, 0 x3a, 0 x75, 0 xc6, 0 xea,
0 x4e, 0 xbd, 0 xc8, 0 x60, 0 x6a, 0 xb2, 0 x85, 0 x00,
0 x3a, 0 x6f, 0 x8f, 0 x40, 0 x76, 0 xb0, 0 x1e, 0 x83 },
.public = { 0 xff, 0 xff, 0 xff, 0 xff, /
0 xff, 0 xff, java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
xff,0 ,0 ff xff,0 xff, 0 ff,0 xff,0 },
.result = { 0 xf1, 0 x36, 0 x77, 0 x5c, 0 x5b, 0 xeb, 0 x0a, 0 xf8,
0 x11, 0 x0a, 0 xf1, 0 x0b, 0 x20, 0 x37, 0 x23, 0 x32,
0 x04, 0 x3c, 0 xab, 0 x75, 0 x24, 0 x19, 0 x67, 0 x87 public = ,x,0 , x,x,0 xff
0 x75, 0 xa2, 0 x23, 0 xdf, 0 x57, 0 ,0 xff, 0 xff,x,0 xff
.valid = true
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
/* wycheproof - edge case for public key */
.private 0 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 56
0 xaf, 0 x1e, 0 xc6, 0 x30, 0 xf9, 0 x65,
0 x2c, 0 x4b, 0 x7b, 0 x6c, 0 x36 * - *
0 x2c, 0 xb0, = x,x,0 0 , 0 ,x 0 x3d,
.public = { 0 xff, 0 xff, 0 xff, 0 xfb, 0 xff, 0 xff, 0 xfb, 0 xff , x,x,0 x,
0 xff, 0 xdf, 0 xff, 0 xff, 0 xdf, 0 xff, 0 xff, 0 xff,
0 xfe, 0 xff, 0 xff, 0 xfe, 0 xff, 0 xff, 0 xf7, 0 xff,
0 xff, 0 xf7, 0 xff, 0 xff, 0 xbf, 0 xff, 0 xff, 0 x3f },
.result = { 0 xbf, 0 x9a, 0 xff, 0 xd0, 0 x6b, 0 x84, 0 x40, 0 x85,
0 x58, 0 x64, 0 x60, 0 x96, 0 x2e, 0 xf2, 0 x14, 0 x6f,
0 xf3, 0 xd4, 0 x53, 0 x3d, 0 x94, 0 x44, 0 xaa, 0 xb0,
0 x06, 0 xeb, 0 x88, 0 xcc, 0 x30, 0 x54, 0 x40, 0 x7d },
.valid = true
java.lang.StringIndexOutOfBoundsException: Range [8, 3) out of bounds for length 3
/* wycheproof - edge case for public key */
{
.private = { 0 x18, 0 x8c, 0 x4b, ,
0 xbb, 0 x65, 0 x8b, 0 x9b, 0 x2a, 0 xe8, 0 x2d
0 , 0 x01, 0 x09, x,0 0 ,
0 xb7, 0 x86, 0 x35, 0 x03, 0 xa7, 0 x83, 0 xe1, 0 xbb },
.public 0 ,x x,x,0 ,x, 0
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 0 x4d,, x, 0 ,0 ,
0 0 ff, x,0 }
.result = { 0 xd4, 0 x80, 0 xde, 0 x04, 0 xf6, 0 x99, 0 xcb, 0 x3b,
0 xe0, 0 x68, 0 x4a, 0 x9c, 0 xc2, 0 xe3, 0 x12, 0 x81,
0 x0b,0 xc5,0 xa9, 0 xdc,0 c1 0 57,0 xd3java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xd2, 0 x01, 0 x58, 0 xd4, 0 x6c, 0 xa5, 0 x24, 0 x6d },
.valid = true
},
/java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
{
.private 0 , ,0 ,0 0 ,
0 xc7, 0 x67, 0 x3f, 0 x67, 0 xf5, 0 x48, 0 x22, 0 x42,
0 x90, 0 x94, 0 x23, 0 xa9, 0 xae, 0 x95, 0 xee, 0 x98,
0 x6a, 0 x98, 0 x8d, 0 x98, 0 xfa, 0 xee, 0 x23, 0 xa2 },
.public = { 0 xff, 0 xff, 0 xff, 0 xff, 0 xfe, 0 xff, 0 xff, 0 x7f,
0 xff, 0 xff, {
0 xff, 0 xff, 0 xff, 0 xff, 0 xfe, 0 xff, 0 xff, 0 x7f,
0 xff, 0 xff, 0 xff, 0 xff, 0 xfe, 0 xff, 0 xff, 0 x7f },
.result = { 0 x4c, 0 x44, 0 x01, 0 xcc, 0 xe6, 0 xb5 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xb1, 0 x8f, 0 x27, 0 x90, 0 x24, 0 x6c, 0 x9b, 0 xf9,
0 x14, 0 xdb, 0 x66, 0 x77, 0 x50, 0 xa1, 0 xcb, 0 x89,
0 x06, 0 x90, 0 x92, 0 xaf, 0 x07, 0 x29, 0 x22, 0 x76 },
.java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
},
/* wycheproof - edge case for public key */
{
private ={0 x,0 0 ,xdd,0 e1 x,0 ,
0 x29, 0 x38, 0 x77, 0 x53, 0 x5b, 0 x11, 0 x62, 0 xb6,
0 xf9, 0 xf5, 0 x41, 0 x4a, 0 x23, 0 xcf, 0 x4d, 0 x2c,
0 xbc, 0 x14, 0 x0a, 0 x4d, 0 x99, 0 xda, 0 x2b, 0 x00,0 ,0 ,0 x00, 0 00 x00 ,x00 },
.public = { 0 xeb, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.result = { 0 x57, 0 x8b, 0 xa8, 0 xcc, 0 x2d, 0 xbd, 0 xc5, 0 x75,
0 xaf, 0 xcf, 0 x9d, 0 xf2, 0 xb3, 0 xee, 0 x61, 0 x89,
0 xf5, 0 x33, 0 x7d, 0 x68, 0 x54, 0 xc7, 0 x9b, 0 x4c,
0 xe1, 0 x65, 0 xea, 0 x12, 0 x29, 0 x3b, 0 x3a, 0 x0f },
.valid = true
},
/* wycheproof - public key with low order */
{
0 0 ,0 x92, 0 x30, 0 7a 0
0 xa4, 0 x58, 0 xca, 0 x28, 0 x4a, 0 x62, 0 x96, 0 x69,
0 x29, 0 x3a, 0 x31, 0 x89, 0 x0c, 0 xda, 0 x9d, 0 x14,
0 x7f, 0 xeb, 0 xc7, 0 xd1, 0 xe2, 0 x2d, 0 x6b, 0 xb1 },
.public = { 0 xe0, 0 xeb, 0 x7a, 0 x7c, 0 x3b, 0 x41, .=
0 x16, 0 x56, 0 xe3, 0 xfa, *
0 xda, 0 x09, 0 x8d, 0 xeb, 0 x9c, 0 x32, 0 xb1, 0 xfd,
0 x86, 0 x62, 0 x05, 0 x16, 0 x5f, 0 x49, 0 xb8, 0 x00 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 0 ,x, x,0 ,0 ,0 71 ,0 fd 0 }
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */
{
={x,0 f1 0 xf1,0 ,x81, 0 java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
0 x89, 0 x44, 0 x8d, 0 xac, 0 x8f, 0 x59, 0 xc7, 0 x0b,
0 x03, 0 x8e, 0 x7c, 0 xf9, 0 x2e, 0 xf2, 0 x00 x00 x, x x,
0 0 00 x 0 x00 0 00 ,
.public = { 0 x5f, 0 x9c
0 xb1, 0 xd0, 0 xb1, 0 x55, 0 x9c, 0 x83, 0 xef, 0 x5b,
0 x04, 0 x44, 0 x5c, 0 xc4, 0 x58, 0 x1c, 0 x8e, 0 x86,
0 xd8, 0 x22, 0 x4e, 0 xdd, 0 xd0, 0 x9f, 0 x11, 0 x57 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
}
/* wycheproof - public key with low order */
{
.private = { 0 xa0, 0 xa0, 0 x5a, 0 x3e, 0 x8f, 0 x9f, 0 x44, .esult ={x,x,0 x00 ,0 ,x00 0 x00,0 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
xd,x5f 0 x59, 0 a9 0 , 0 ,0 xdfjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xc3, 0 x9a, 0 x49, 0 xac, 0 x01, 0 x6d, 0 xd7, 0 x43,
0 xdb, 0 xfa, 0 x43, 0 xc5, 0 xd6, 0 x71, 0 xfd, .valid false
.public = { 0 xec, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
x,0 ff 0 xff, 0 xff,0 ff 0 xff, x,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
{
.private = { 0 xd0, 0 xdb, 0 xb3, 0 .result = { 0x00, 0x00, 0x00, 0x00, x00,0 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
0 x15, 0 x42, 0 x0a, 0 xf3, 0 x1f, 0 x4e, 0 xaf, 0 x65,
0 x09, 0 xd9, 0 xa9, 0 x94, 0 x97, 0 x23, 0 x50, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0 x05, 0 xad, 0 x7c, 0 x1c, 0 x6e, 0 x74, 0 x50, 0 xa9 },
.public = { 0 xed, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 0 ,0 x33 x,0 x, 0 ,0 x85java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
}
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
valid=false
},
/* wycheproof - public key with low order */
{
private 0 0 , x, 0 xeb,x,0 b2 x44 0 xfe,
0 x32, 0 x91, 0 x14, 0 x00, 0 x72, 0 xcd, 0 xd9, 0 xd9,
}
0 xeb, 0 x5b, 0 xca, 0 x24, 0 x1c, 0 x1d, 0 x9f, 0 x8f },
.public = { 0 xee, 0 xff, 0 xff, 0 xff, 0 xff, 0 0x9b, 0xd8, 0xdb, 0x14, 0xcd, 0x43, 0xba
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 result = x00 x,x,0 0
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */ x00 x00, x,0 ,x, }
{
.private = { 0 x48, 0 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 16
0 xbc, 0 x0f, 0 x33, 0 x53, 0 xc6, 0 xe8, * wycheproof - public key with low order */
0 x3d, 0 x77, 0 xf3, 0 x51, 0 xf1, 0 xc2, 0 xca, 0 x6c,
0 x2d, 0 x1a, 0 xbf, 0 x8a, 0 x00, 0 xb4, 0 x22, 0 x9c },
.public = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 x6d x x,0 d10 x,0 x83}
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x80 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
/* wycheproof - public key with low order */
{
.private = { 0 x30, 0 xf9, 0 x93, 0 xfc, 0 xf8, 0 x51, 0 x4f, 0 xc8,
0 x9b, 0 xd8, 0 xdb, 0 x14, 0 xcd, 0 x43.={0 x50 ,x37 x3d,0 , java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
0 x4b, 0 x25, 0 x30, 0 xe7, 0 x3c, 0 x42, 0 x76, 0 xa0,
0 x5e, 0 x1b, 0 x14, 0 x5d, 0 x42, 0 x0c, 0 xed, 0 xb4 },
.public = { 0 x01, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x80 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 , x00 x00
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
. .valid java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
},
/* wycheproof - public key with low order */
{
.private = { 0 xc0, 0 x49, 0 x74, 0 xfd, x6e,0 , x,0 f2, 0 0 ,0 xf1,
0 x5b, 0 x5d, 0 xf6, 0 xeb, 0 x09, 0 xbb, 0 x2f, 0 x6b,
0 x34, 0 x34, 0 xf9, 0 x82, 0 x72, 0 x2a, 0 x8e, 0 x67,
xdx,0 ,x,0 x,0 x83,
.public = { 0 xe0, 0 xeb, 0 x7a, 0 x7c, 0 x3b, 0 x41, 0 xb8, 0 xae,
0 x16, 0 x56, 0 xe3, 0 xfa, 0 xf1, 0 x9f, 0 xc4, 0 x6a,
0 xda, 0 x09, 0 x8d, 0 xeb, 0 x9c, 0 x32, 0 xb1, 0 xfd,
0 x86, 0 x62, 0 x05, 0 x16, 0 x5f, 0 x49, 0 xb8 x x x,
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 0 x00 x,
0 x00, 0 x00, 0 x00, 0 x00, 0 0x00, 0x00, 0x00, 0x00, 0x00java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 56
0 0 ,0 ,x,0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */
{
.rivate= { 0 x50 0 2 a, 0 x31 x37,0 , x,0 24 ,0 ,
0 x84,. ={x,0 x xff x
,0 41 0 xaf, 0 xc3,
0 xd9, 0 xf1, 0 xbb, 0 x3d, 0 x39, 0 x53, 0 x4e, 0 xb5 0 ,xff,0 ,,0 ff xff x,
.public = { 0 x5f, 0 x9c, 0 x95, 0 xbc, 0 xa3, 0 x50, 0 x8c, 0 x24,
0 xb1, 0 xd0, 0 xb1, 0 x55, 0 x9c, 0 x83, 0 xef, 0 x5b,
0 x04, 0 x44, 0 x5c, 0 xc4, 0 x58, 0 x1c, 0 x8e, 0 x86,
0 xd8, 0 x22, 0 x4e, 0 xdd, 0 xd0, 0 0 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 56
.result /* wycheproof - public key with low order */
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 . x98 0 xe2,0 xe7,0 ,0
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */
{
.private = { 0 x90, 0 xfa, f 0 xff0 0 java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 54
0 xfd, 0 x6e, 0 x43, 0 xef, 0 xf2, 0 xab, 0 xae, 0 xf1,
0 x4c, 0 x67, 0 x93, 0 x11, 0 x7a, 0 x03, 0 x9c, 0 xf6,
0 x21, 0 x31, 0 x8b, 0 xa9, 0 x0f, 0 x4e, 0 x98, 0 xbe },
.public = { 0 xec, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */
{
.private = { 0 x78, 0 xad, 0 x3f, 0 x26, 0 x02, 0 x7f, 0 x1c, 0 x9f,
0 xdd, 0 x97, 0 x5a, 0 x16, 0 x13, 0 xb9, 0 x47, 0 x77,
0 x9b, 0 xad, 0 x2c, 0 xf2, 0 xb7, 0 x41, 0 xad, 0 xe0,
0 x18, 0 x40, 0 x88, 0 x5a, 0 x30, 0 xbb, 0 x97, 0 x9c },
.public = { 0 xed, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key with low order */
{
.private = { 0 x98, 0 xe2, 0 x3d, 0 xe7, 0 xb1, 0 xe0, 0 x92, 0 x6e,
0 xd9, 0 xc8, 0 x7e, 0 x7b, 0 x14, 0 xba, 0 xf5, 0 x5f,
0 x49, 0 x7a, 0 x1d, 0 x70, 0 x96, 0 xf9, 0 x39, 0 x77,
0 ,0 0 , 0 , x,x1c,0 x7b,0 x8b },
.public = { 0 xee, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result 0 x38,0 , 0 x1f 0 0 java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 55
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = false
},
/* wycheproof - public key >= p */
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
.private = { 0 xff,0 xff,0 xff, 0 xff, 0 java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 56
x,0 xcb xc3,0 82 ,0 c8 x,0 xd1
0 x8b, 0 xda, 0 x35, 0 x50, 0 x58, 0 x9f, 0 xfb, 0 x5d,
0 x50, 0 xb5, 0 x23, 0 xbe, 0 xbe, xbf,0 ,x34}
.public = { 0 xef, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 35
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff 0 0 x9e, 0 x78 xb8,x, xd3 x,0 xa2
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.result = { 0 xbd, 0 x36, 0 xa0, 0 x79, 0 x0e, 0 xb8, 0 x83, 0 .result = { 0xbd, 0x36, 0xa0, 0x79, 0x0e, 0xb8, 0x83, 0x09
0 x8c, 0 x98, 0 x8b, 0 x21, 0 x78, 0 x67, 0 x73, 0 xde,
0 x0b, 0 x3a, 0 x4d, 0 xf1, 0 x62, 0 x28, 0 x2c, 0 xf1,
0 x10, 0 xde, 0 x18, 0 xdd, 0 x48, 0 x4c, 0 xe7, 0 x4b },
.valid = true
},
/* wycheproof - public key >= p */
{. java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
.private = { 0 x28, 0 x87, 0 x96, 0 xbc, 0 x5a, 0 xff, 0 x4b, 0 x81,
0 xa3, 0 x75, 0 x01, 0 x75, 0 x7b, 0 xc0, 0 x75, 0 x3a,
0 x3c, 0 x21, x7c,x04,xc5 xf5 xdb 0 x13
0 x30,0 x8d,, 0 eb 0 c1,0 ,0 6 e,0 af 0 x8d }
.public = . = 0 ,x00 x00,x00 x00,0 00 ,0 00java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 result 0 1 c ,x,x,x,x54,0 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
.result = { 0 xb4, 0 xe0, 0 xdd, 0 x76, 0 xda, 0 x7b, 0 x07, 0 x17,
0 x28, 0 xb6, 0 x1f, 0 x85, 0 x67, 0 x71, 0 xaa, 0 x35,
0 x6e, 0 x57, 0 xed, 0 xa7, 0 x8a, 0 x5b, 0 x16, 0 x55,
0 xcc, 0 x38, 0 x20, 0 xfb, 0 x5f, 0 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 35
. java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
},
/* wycheproof - public key >= p */ x, x,x xa8,0 ,0 x,x,
{
. 0xa9 x,x,0 x71 x,0 },
0 x38, 0 x22, 0 x1f, 0 x11, 0 x90, 0 x41, 0 xf7, 0 x2b,
0 x6d, 0 xbc, 0 x3c, 0 x4a, 0 xce, 0 x71, 0 x43, 0 xd9,
0 x,0 ,x00 x, x,0 ,
.public , 0 , 0 ,0 x80}
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 ,0 ,0 xff xff,0 ,,x7f
.result = { 0 x6f, 0 xdf, 0 x6c, 0 x37, 0 x61, 0 x1d, 0 xbd, 0 x53,
0 x04, 0 xdc, 0 x0f, 0 x2e, 0 xb7, 0 xc9, 0 x51, 0 x7e,
0 xb3, 0 xc5, 0 x0e, e
0 xde, 0 xc2, 0 x70, 0 x71, 0 xd4, 0 xbf, 0 xc0, 0 x34 },
.valid = true 0 ,xe8 x7b x8b, 0 9 ,x41,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
},
/* wycheproof - public key >= p */
{
.private = { 0 xf0, 0 x94, 0 x98, 0 xe4, 0 x6f, 0 x02, 0 xf8, 0 x78,
0 x82, 0 x9e, 0 x78, 0 xb8, 0 x03, 0 xd3, 0 x16, 0 xa2,
0 xed, 0 x69, 0 x5d, 0 x04, 0 x98, 0 xa0, 0 x8a, 0 xbd,
0 xf8, 0 x27, 0 x69, 0 x30, 0 xe2, 0 x4e, 0 xdc, 0 xb0 },
.public 0 0 ,x, 0 ,0 java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 15
0 xff, 0 xff, 0 xff, 0 xff, 0 xff /* wycheproof - public key >= p */
. xc,x8f xc4 xb1, x,0 xab, 0 88 ,0 xfb,
0 x21, 0 xf1, 0 x8f, 0 x6d, 0 x4c, 0 x81, 0 x02, 0 x40,
0 xd4, 0 xe9, 0 x46, 0 x51, 0 xba, 0 x44, 0 xf7, 0 xa2,
0 xc8, 0 x63, 0 xce, 0 xc7, 0 xdc, 0 x56, 0 x60, 0 x2d },
.valid = true
},
/
x, 0 ,0 ,0 , xff x,0 ,
.private = { 0 x18, 0 x13, 0 xc1, 0 x0a, 0 x5c, 0 x7f, 0 x21, 0 xf9,
0 x6e, 0 x17, 0 xf2, 0 x88, 0 xc0, 0 xcc, 0 x37, 0 x60,
0 x7c, 0 x04, 0 xc5, 0 xf5, 0 xae, 0 xa2, 0 xdb, 0 x13,
0 x4f, 0 x9e, 0 x2f, 0 xfc, 0 x66, 0 0x10, 0xf1, 0xfb, 0xab, 0x7f, 0x25,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
.public = { 0 x02, 0 x00=
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00,0 ,0 x63, x63 ,0 0 java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
0 x00, 0 x1f xe0 0 x9b x36,x5b,
= 0 xd0 0 xb2 0 , 0 x67, 0 xdc, 0 x54, 0 x1c,
0 x64, 0 x2d, 0 x6d, 0 x7d, 0 xca, 0 x44, 0 xa8, 0 xb3,
0 x8a, 0 x63, 0 x73, 0 x6e, 0 xef, 0 x5c, 0 x4e, 0 x65,
0 x01, 0 xff, 0 ff xff, 0 ,,0 xff x }
=
},
/* wycheproof - public key >= p */
{
.private = { 0 x78, 0 x57, 0 xfb, 0 x80, 0 x86, 0 x53 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 56
0 x0b, 0 xeb, 0 x13, 0 x8a, 0 x64, 0 xf5, 0 xf4, 0 xd7,
0 x33, 0 xa4, 0 x5e, 0 xa8, 0 x4c, 0 x3c, 0 xda, 0 x11,
0 xa9, 0 xc0, 0 x6f, 0 x7e, 0 x71, 0 x39, .private = x30 x, xc6,0 xf2, 0 xa6, 0 ,
.public = { 0 x03, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
xe4 x,0 ,0 , xab ,xc xa5}
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x80 },
.result = x, 0 ,0 0 x,0 ,x,
0 x5c, 0 x,0 x78, x, 0 xa4,
0 x33, 0 x38, 0 x61, 0 x51, 0 x6a, 0 xa5, 0 x9b, 0 x1c,
0 x51, 0 xa8, 0 xb2, 0 xa5, 0 x43, 0 xdf, 0 xa8, 0 x22 },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 xe0, 0 x3a, 0 xa8, 0 x42, 0 xe2, 0 xab, 0 xc5, 0 x6e,
0 x81, 0 xe8, 0 x7b, 0 x8b, 0 x9f, 0 x41, 0 x7b, 0 x2a,
0 x1e, 0 x59, 0 x13, 0 xc7, 0 x23, 0 xee, 0 xd2, 0 x8d,
0 x75, 0 x2f, 0 x8d, 0 x47, 0 xa5, 0 x9f, 0 x49, 0 x8f },
.public = { 0 x04, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00,0 x00,0 , x00, 0 00 ,0 }java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
.result = { 0 x54, 0 xc9, 0 xa1, 0 xed, 0 x95, 0 xe5, 0 x46, 0 xd2,
0 x78, 0 x22, 0 xa3, 0 x60, 0 xff,0 xff,x, x,0 0 x,,
x,0 0 0 , xff xff}
0 x3c, 0 x06, 0 x12, 0 xbb, 0 xdc, 0 x08, 0 x74, 0 x76 },
.valid = true
},
/* wycheproof - public key >= p */
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
0 x61,0 xf1, 0 3 d,,0 x,0 ,
0 x0d, 0 x6b, 0 x96, 0 x12, 0 x4f, 0 x20, 0 x45, 0 x97,
0 x2c, 0 xa2, 0 x74, 0 xbf, 0 xc1, 0 x54, 0 xad, 0 x0c,
0 x87, 0 x03, 0 x8c, 0 x24, 0 xc6, 0 xd0, 0 xd4, 0 xb2 },
.public = { 0 xda, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 .public = { 0xeb, 0xff, 0xff, 0xff, 0xf,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff 0 xff,0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
.esult {0 xcc,0 1 , 0 ,0 d70 x43,0 ,0 xc2,
, 0 x8b, 0 ,0 ,
0 x10, 0 xf1, 0 xfb, 0 xab, 0 x7f, 0 x25, 0 x52, 0 x69,
0 xbd, 0 x9e, 0 xbb, 0 x29, 0 xe6, 0 xbf, 0 x49, 0 x4f },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 xa0, 0 x34, 0 xf6, 0 x84, 0 xfa, 0 x63, 0 x1e, 0 x1a,
0 x34 0 x81,0 x18, 0 xc1 0 xce,0 x4c,0 x98,0 x23java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 x1f, 0 x2d, 0 x9e, 0 xec, 0 x9b, 0 xa5, 0 x36, 0 x5b,
0 x4a, 0 x05, 0 xd6, 0 x9a, 0 x78, 0 2 xc2 x69,x 0 xd4,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.public = { 0 xdb, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff 0 x74 0 xd7,0 ,0 x12 xd x47 0 0 91 ,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 ff0 xff xff, 0 xff, 0 xff ,
.result = { 0 x54, 0 x99, 0 x8e, 0 xe4, 0 x3a, 0 x5b, 0 x00, 0 x7b,
0 xf4, 0 x99, 0 xf0, 0 x78, 0 xe7, 0 x36, 0 xf2 x, xbf x7c,0 ,0 x,
0 x00, 0 xa8, 0 xb5 0 xd4 java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 56
0 x71, 0 x74, 0 x8c, 0 x7c, 0 xdf, 0 x88, 0 x04, 0 x12 },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 x30, 0 xb6, 0 xc6, 0 xa0, 0 xf2, 0 xff, 0 xa6, 0 x80,
0 x76, 0 x8f, 0 x99, 0 x2b, 0 xa8, 0 x9e, 0 x15, 0 x2d,
0 x5b, 0 xc9, 0 x89, 0 x3d, 0 x38, 0 xc9, 0 x11, 0 x9b,
0 xe4, 0 xf7, 0 x67, 0 xbf, 0 xab, 0 x6e, 0 x0c, 0 xa5 },
.public = { 0 xdc, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff,,xff,0 xff x, xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 x,0 ,xff xff,0 ,0 xff 0 xff },
.result = { 0 xea, 0 xd9, 0 xb3, 0 x8e, 0 xfd, 0 xd7, 0 x23, 0 x63,
0 x79 .alid=true
0 x09, 0 xeb, 0 x86, 0 xa2, 0 x1d, 0 xc3, 0 x6a, 0
0 xee, 0 xb8, 0 x8b, 0 x75, 0 x9e, 0 x39, 0 x1e, 0 x09 },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 x90, 0 x1b, 0 x9d, 0 xcf, 0 x88, 0 x1e, 0 x01, 0 xe0,
0 27,0 x57, 0 x50 0 35 , 0 xd4, 0 x0b, 0 x43, 0 xbd,
0 xc1, 0 xc5, 0 x24, 0 x2e, 0 x03, 0 x08, 0 x47, 0 x49,
0 x5b, 0 x0c, 0 x72, 0 x86, 0 x46, 0 x9b, 0 x65, 0 x91 },
.public = { 0 xea, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, .result = {0 78 ,0 x6c, x, , x,0 xf0,0 xa5,
. = xf,0 0 , 0 x89,0 xb5, 0 4b 0 x41
0 x80, 0 x59, 0 x15, 0 xfe, 0 x2a, 0 x62, 0 x21, 0 xf0,
0 x7a, 0 x50, 0 xff, 0 xc2, 0 xc3, 0 xfc, 0 x94, 0 xcf,
0 x61, 0 xf1, 0 x3d, 0 x79, 0 x04, 0 xe8, 0 x8e, 0 x0e },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 x80, 0 x46, 0 x67, 0 x7c, 0 x28, 0 xfd, 0 x82, 0 xc9,
x,0 xbd,0 b70 x1a,0 x1a, 0 x1a,0 x34,0 xfa,
0 xba, 0 x12, 0 x25, 0 xe2, 0 x50, 0 x7f, 0 xe3, 0 xf5,
0 x4d, 0 x10 0 x10,xbd,0 x5b,0 x0d, 0 86 0 x5f,0 x8e },
.public = { 0 xeb, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff 0 x30,0 x85 0 xf9, 0 x6a, 0 x56, 0 x59, 0 xb3, 0 xa5 },
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.esult={0 e0 0 x0a,xe8, 0 xb1,0 ,0 0 x12 0 x47,
0 xba, 0 x24, 0 xf1, 0 x2c, 0 x88, 0 x55, 0 x36, 0 xc3,
0 xcb 0 x98, 0 1 b 0 580 xe1 0 xe5, x6 b, x2bjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xaf,0 x35xc1,0 xe1,0 xc x26 }
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 x60, 0 x1a x1d x31,, 0 8 ,0 , 0 48
x2c, 0 , 0 x69, java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 55
0 x86, 0 xae, 0 x54, 0 xfd, 0 x63, 0 x6c, 0 x1f, 0 xe0,
0 x74, 0 xd7, 0 x10, 0 x12, 0 x7d, 0 x47, 0 x24, 0 x91 },
.public = { 0 xef, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff,0 xff, x, , 0 xff,0 ff0 ff 0 ff
x, xff,0 xff,0 ,0 ff 0 xff,0 ,0 ,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result = { 0 x98, 0 xcb, 0 x9b, 0 x50, 0 xdd, 0 x3f, 0 xc2, 0 xb0,
0 xd4, x, 0 d2 0 xbf 0 x7c, x5c, 0 xfd, 0 xd1,
0 x0c, 0 x8f, 0 xcd, 0 x31, 0 xfc, 0 x40, 0 xaf, 0 x1a,
0 xd4, 0 x4f, 0 x47, 0 xc1, 0 x31, 0 x37, 0 x63, 0 x62 },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 x60, 0 x88, 0 x7b, 0 x3d, 0 xc7, 0 x24, 0 x43, 0 x02,
0 x6e, 0 xbe, 0 xdb, 0 xbb, 0 xb7, 0 x06, 0 x65, 0 xf4,
0 x2b, 0 x87, 0 xad 0 xd1,0 x44, 0 x0e, 0 x77, 0 x68,
0 xfb, 0 xd7, 0 xe8, 0 xe2, 0 xce, 0 x5f, 0 x63, 0 x9d },
.public = { 0 xf0, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff,0 xff, 0 xff,0 ff0 xff,0 ,0 ff,0 xff ,
.result = { 0 x38, 0 xd6, 0 x30, 0 x4c, 0 x4a, 0 x7e, 0 x6d, 0 x9f,
0 x79, 0 x59, 0 x33, 0 x4f, 0 xb5, 0 x24, 0 x5b, 0 xd2,
0 xc7, 0 x54, 0 x52, 0 x5d, 0 x4c, 0 x91, 0 xdb, 0 x95,
0 x02, 0 x06, 0 x92, 0 x62, 0 x34, 0 xc1, 0 xf6, 0 x33 },
.alid = true
},
/* wycheproof - public key >= p */
{
.private {0 78 0 x1d 0 0 x85, x44 0 x97,0 ,
0 x2d, 0 x8d, 0 xfc,0 x4c,x,0 49 ,0 ,0 xa4, 0 }java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
xce, 0 xc2 0 xd8 0 xc4,x92 , 0 x46,0 47,0 xc9,
0 x38, 0 x14, 0 xae, 0 x56, 0 xfa, 0 xed, 0 xa4, 0 x95 },
.public = { 0 xf1, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 ff 0 xff,0 xff,, 0 ff,0 ,0 ff 0 0 xff }java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
.result = { 0 x78, 0 x6c, 0 xd5, 0 x49, 0 /* wycheproof - edge case for shared secret
0 xa0, 0 x31, 0 xec, 0 x14, 0 xdb, 0 x81, 0 x2e, 0 xd0,
0 x83, 0 x55, 0 x06, 0 x1f, 0 xdb, 0 x5d, 0 xe6, 0 x80,
0 xa8, 0 x00, 0 xac, 0 x52, 0 x1f, 0 x31, 0 x8e, 0 x23 },
.valid = true
},
/* wycheproof - public key >= p */
{
.private = { 0 xc0, 0 x4c, 0 x5b, 0 xae, 0 xfa, 0 x83, 0 x02, 0 xdd,
0 xde, 0 xd6, 0 xa4, 0 xbb, 0 x95, 0 x77, 0 x61, 0 xb4,
0 xeb,
0 x30, 0 x85, 0 xf9, 0 x6a, 0 x56, 0 x59, 0 xb3, 0 xa5 },
.public = { 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff },
.result = { 0 x29, 0 xae, 0 x8b, 0 xc7, 0 x3e, 0 x9b, 0 x10, 0 xa0,
0 x8b, {
0 x1a, 0 x17, 0 x1d, 0 x31, 0 xb3, 0 x8f, 0 x1a, 0 x48,
0 xef, 0 xba, 0 x29 xb1,0 0 xdb0 7 c xb8 x55 , x,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.valid = true
},
/* wycheproof - RFC 7748 */
{
.private = { 0 xa0, 0 x46, 0 xe3, 0 x6b, 0 xf0, 0 x52, 0 x7c, 0 x9d,
0 x3b, 0 x16, 0 x15, 0 x4b, 0 x82, 0 x46, 0 x5e, 0 xdd,
0 x62, 0 x14, 0 x4c, 0 x0a, 0 xc1, 0 xfc, 0 x5a, 0 x18,
0 x50, 0 x6a, 0 x22, 0 x44, 0 xba, 0 x44, 0 x9a, 0 x44 },
.public = { 0 xe6, 0 xdb, 0 x68, 0 x67, 0 x58, 0 x30, 0 x30, 0 xdb,
0 x35, 0 x94, 0 xc1, 0 xa4, 0 x24, 0 xb1, 0 x5f, 0 x7c,
0 x72, 0 x66, 0 x24, 0 xec, 0 x26, 0 xb3, 0 x35, 0 x3b,
0 x10, 0 xa9, 0 x03, 0 xa6, 0 xd0, 0 xab, 0 x1c, 0 x4c },
.result = { 0 xc3, 0 xda, 0 x55, 0 x37, 0 x9d, 0 xe9, 0 xc6, 0 x90,
0 , ,,0 ,0 , x08 xf
0 x32, 0 xec, 0 xcf, 0 x03, 0 x49, 0 x1c, 0 x71, 0 xf7,
0 x54, 0 xb4, 0 x07, 0 x55, 0 x77, 0 xa2, 0 x85, 0 x52 },
.valid = true
}, 0 xb9,0 ,0 ,0 x, 0 xbf,x63 }
/* wycheproof - RFC 7748 */
{
, 0 xd40 x, x67 0 x3c,
0 x5a, 0 xd2, 0 x26, 0 x91, 0 x95, 0 x7d, 0 x6a, 0 xf5,
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 56
0 x2c, 0 xa4, 0 x16, 0 x9e, 0 x79, 0 x18, 0 xba, 0 x4d },
.public = { 0 xe5, 0 x21, 0 x0f, 0 x12, 0 x78, 0 x68, 0 x11, 0 xd3,
0 xf4, 0 xb7, 0 x95, 0 x9d, 0 x05, 0 x38, 0 xae, 0 x2c,
0 x31, 0 xdb, 0 xe7, 0 x10, 0 x6f, 0 xc0, 0 x3c, 0 x3e,
0 xfc, 0 x4c, 0 xd5, 0 x49, 0 xc7, 0 x15, 0 xa4, 0 x13 },
.result = { 0 x95, 0 xcb, 0 xde, 0 x94, 0 x76, 0 xe8, 0 x90, 0 x7d,
0 x7a, 0 xad
0 x8b, 0 x59, 0 x5a, 0 x68, 0 x79, 0 x9f, 0 xa1, 0 x52,
x,0 xjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 56
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x0a, 0 xb4, 0 xe7, 0 x63, 0 x, 0 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x4f, 0 x68, 0 x33, 0 xc5, 0 x8f, 0 x2a, 0 x9f, 0 xb8,
0 xf8, 0 x3b, 0 xb0, 0 x16, 0 x9b, 0 x17, 0 x2b, 0 xe4,
0 xb6, 0 xe0, 0 x59, 0 x28, 0 x87, 0 x74, 0 x1a, 0 x36 },
.result = { 0 x02, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 54
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0x, x 0 x22,0 ce 0 ,0 35 ,0 x50,0 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x89, 0 xe1, 0 x0d, 0 x57, 0 x01, 0 xb4, 0 x33, 0 x7d,
0 x2d, 0 x03, 0 x21, 0 x81, 0 x53, 0 x8b, 0 x10, 0 x64,
0 xbd, 0 x40, 0 x84, 0 x40, 0 x1c, 0 xec, 0 xa1, 0 xfd,
0 x12, 0 x66, 0 x3a, 0 x19, 0 x59, 0 x38, 0 x80, 0 x00 },
.result = { 0 x09, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
},
.valid = true
x0ex14x x,x,x,
/* wycheproof - edge case for shared secret */
{
.private = {0 ,0 xa4,0 xf1,0 x30 0 xb9, 0 x8a,0 x5b,0 e4
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
,x, x47,0 ,xc9,0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x2b, 0 x55, 0 xd3, 0 xaa, 0 x4a, 0 x8f, 0 x80, 0 xc8,
0 xc0, 0 xb2, 0 xae, 0 x5f, 0 x93, 0 x3e, 0 x85, 0 xaf,
0 x49, 0 xbe, 0 xac, 0 x36, 0 xc2, 0 xfa, 0 x73, 0 x94,
0 xba, 0 xb7, 0 x6c, 0 x89, 0 x33, 0 xf8, 0 xf8, 0 x1d },
.result = { 0 x10, 0 00 ,0 x00,0 x00, 0 x00,0 x00,0 x00,0 x00,
0 00 0 x00,0 ,0 0 x000 java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x00, 0 x00, 0 x00, 0 x00, /* wycheproof - edge case for shared secret */
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00 },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x63, 0 xe5, 0 xb1, 0 xfe, 0 x96, 0 x01, 0 xfe, 0 x84,
0 x38, 0 x5d, 0 x88, 0 x66, 0 xb0, 0 x42, 0 x12, 0 x62,
0 xf7, 0 x8f, 0 xbf, 0 xa5, 0 xaf, 0 xf9, 0 x58, 0 x5e,
0 x62, 0 x66, 0 x79, 0 xb1, 0 x85, 0 x47, 0 xd9, 0 x59 },
. ={ 0 xff,0 ,, 0 0 xff,0 ,0 ,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x3f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 xe4, 0 x28, 0 xf3, 0 xda, 0 xc1, 0 x78, 0 x09, 0 xf8,
0 x27, 0 xa5, 0 x22, 0 xce, 0 x32, 0 x35, 0 x50, 0 x58,
0 xd0, 0 x73, 0 x69, 0 x36, 0 x4a, 0 xa7, 0 x89, 0 x02,
0 xee, 0 x10, 0 x13, 0 x9b, 0 x9f, 0 x9d, 0 xd6, 0 x53 },
.result = { 0 xfc, .esult = {0 0 xff 0 0 xff ,x, x,0 ,
0 ,0 xff,0 ff0 ff,x 0 xff xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x3f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 xb3, 0 xb5, 0 x0e, 0 x3e, 0 xd3, 0 xa4, 0 x07, 0 xb9,
0 ,0 42 ,0 ef 0 74 0 x57,0 x5b,0 ,
0 xb8, 0 xa1 .ublic = { 0 x04, 0 x5c, 0 x6e, 0 x11, 0 xc5, 0 xd3, 0 x32, 0 x55,
0 , 0 0b x, 0 xed x, 0 xab,0 x2b }
.result = { 0 xf9, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x3f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 . =
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x21, 0 x3f, 0 xff, 0 xe9, xdb, 0 x7cxb8,x55 ,x84 xa3java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
0 x24, 0 x2e, 0 x46, 0 x28, 0 x44, 0 x02, 0 x99, 0 x22,
0 ,0 x3c,0 0 ,0 xe3 0 xe4, x2 f,0 56 ,
0 x2f, 0 x48, 0 x5d, 0 x24, 0 x0b, 0 x71, 0 x16, 0 x35, 0 x39,
.result = { 0 xf3, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff 0 xff, 0 xff, 0 xff, 0 xff 0 ff 0 xff,0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x3f },
=
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, }
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x91, 0 xb2, 0 x32, 0 xa1, 0 x78, 0 xb3, 0 xcd, 0 x53,
0 x09, 0 x32, 0 x44, 0 x1e, 0 x61, 0 x39, 0 x41, 0 x8f,
0 x72, 0 x17, 0 x22, 0 x92, 0 xf1, 0 xda, 0 x4c, 0 x18,
0 x34, 0 xb9,0 09 , 0 x73,,x76, 0 }java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
.result = { 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 0x00, 0xc4, 0x91, 0x62, 0x22, 0xe9, 0xe8x58,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x03 },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0,java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
x, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x04, 0 x5c, 0 x6e, 0 x11, 0 xc5, 0 xd3, 0 x32, 0 x55,
0 x6c, 0 x78, 0 x22, 0 xfe, 0 x94, 0 xeb, 0 xf8, 0 x9b,
x,0 x,0 ,0 x7c, x,0 79
0 x10, 0 x30, 0 x58, 0 x84, 0 x9f, 0 xab, 0 xcb, 0 x4f x,0 ,xfe x340 0 ,x,
.result = { 0 xe5, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
, 0 x30,0 0 ,0 5 , 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 x1c, 0 xa2, 0 x19, 0 x0b, 0 x71, 0 x16, 0 x35, 0 x39,
0 x06, 0 x3c, 0 x35, 0 x77, 0 x3b .public = { 0 x88, 0 xfd, 0 xde, 0 xa1, 0 x93, 0 x39, 0 x1c, 0 x6a,
0 x92, 0 x8e, 0 x91, 0 x36, 0 xf0, 0 x62, 0 x0a, 0 xeb,
0 x09, 0 x3f, 0 x09, 0 x91, 0 x97, 0 xb7, 0 xf7, 0 x4e },
.result = { 0 xe3, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
x, x, 0 xff, x, x xff 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 xf7, 0 x6e, 0 x90, 0 x10, 0 xac, 0 x33, 0 xc5, 0 x04,
0 x3b, 0 x2d, 0 x3b, 0 x76, 0 xa8, 0 x42, 0 x17, 0 x10,
0 x00, 0 xc4, 0 x91, 0 x62, 0 x22, 0 xe9, 0 xe8, 0 x58,
0 x97, 0 xa0, 0 xae, 0 xc7, 0 xf6, 0 x35, 0 x0b, 0 x3c },
. ={ 0 xdd,xff x, 0 ,0 xff 0 xff,0 xff, xjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
, 0 xff, 0 xff, 0 x7f }
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, overflow
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9, 0 x09, 0 xa0, 0 x73, 0 xa9, 0 x76, 0 xbf, 0 x63 },
.public = { 0 xbb, 0 x72, 0 x68, 0 x8d, 0 x8f, 0 x8a, 0 xa7, 0 xa3,
0 x9c, 0 xd6, 0 x06, 0 x0c, 0 xd5, 0 xc8, 0 x09, 0 x3c,
0 xde, 0 xc6, 0 xfe, 0 x34, 0 x19, 0 x37, 0 xc3, 0 x88,
0 x6a, 0 x99, 0 x34, 0 x6c, 0 xd0, 0 x7f, 0 xaa, 0 x55 },
, 0 xff, 0 xff 0 xff 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x7f },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, 0 x5b, 0 xe4,
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 x52, 0 x0e, 0 x14, 0 x2d, 0 x47, 0 x4d, 0 xc9, 0 xcc,
0 xb9 x,x,x73,0 x,x ,
.public = { 0 x88, 0 xfd, 0 xde, 0 xa1, 0 x93, 0 x39, 0 x1c, 0 x6a,
0 x59, 0 x33, 0 xef, 0 x9b, 0 x71, 0 x90, 0 x15, 0 x49,
0 x44, 0 x72, 0 x05, 0 xaa, 0 xe9, 0 xda, 0 x92, 0 x8a,
0 x6b, 0 x91, 0 xa3, 0 x52, 0 xba, 0 x10, 0 xf4, 0 x1f },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x02 },
.valid = true
},
/* wycheproof - edge case for shared secret */
{
.private = { 0 xa0, 0 xa4, 0 xf1, 0 x30, 0 xb9, 0 x8a, x2ex, x50java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
0 xb1, 0 xce, 0 xdb, 0 x7c, 0 xb8, 0 x55, 0 x84, 0 xa3,
0 52 0 0 ,0 ,0 ,
0 xb9,{
.public = { 0 x30, 0 x3b, 0 x39, 0 x2f, 0 x15, 0 x31, 0 x16, 0 xca,
0 xd9, 0 xcc, 0 x68, 0 x2a, 0 x00, 0 xcc, 0 xc4, 0 x4c,
0 x95, 0 xff, 0 x0d, 0 x3b, 0 xbe, 0 x56, 0 x8b, 0 xeb,
0 x6c, 0 x4e, 0 x73, 0 x9b, 0 xaf, 0 xdc, 0 x2c, 0 x68 },
.result = { 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00,
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x80, 0 x00 },
.valid = true
},
/* wycheproof - checking for overflow */
{
.private = { 0 xc8, 0 x17, 0 x24, 0 x70 0 xcc0 xe5, 0 x09, 0 xe4, 0 xeb, 0 xa0, 0 x89, 0 xd0,
0 x31, 0 x70, 0 x3c, 0 xc9, 0 x7e,
0 x56, 0 xfa, 0 xd8, 0 x21, 0 x93, 0 x61, 0 xc8, 0 x8c,
0 xca, 0 x8b, 0 xd7, 0 xc5, 0 x71, 0 x9b, 0 x12, 0 xb2 },
0 java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 55
0 x25x18 0 x41,x2b, 0 x49,0 b2 0 x,
0 x84, 0 x2b, 0 x1e, 0 x1f, 0 x05, 0 x6a, 0 x04, 0 x01,
0 x78, 0 xea, 0 x41, 0 x41, 0 x53, 0 x4f, 0 x65, 0 x2d },
.result = { 0 xb7, 0 x34, 0 x1b,0 50 x57 ,0 x02,0 21 x, xdjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
0 x73, 0 xb5, 0 x66, 0 xcc, 0 xb7, 0 x6f, 0 x06, 0 x27,
0 x95, 0 xcc, 0 xbe, 0 xc8, 0 x91, 0 x28, 0 x97, 0 x4c,0 xc4, 0 x90,0 x13 0 xc4, 0 x98, 0 x31 },
, x96 x39,0 ,0 ,0 ,
.valid = true
},
/* wycheproof - checking for overflow */
{
.private = { 0 xc8, 0 x17, 0 x24, 0 x70, 0 x40, 0 x00, 0 xb2, 0 x6d,
0 x31, 0 x70, 0 x3c, 0 xc9, 0 x7e, 0 x3a, 0 x37, 0 x8d,
0 x56, 0 xfa, 0 xd8, 0 x21, 0 x93, 0 x61, 0 xc8, 0 x8c,
0 xca, 0 x8b, 0 xd7, 0 xc5, 0 x71, 0 x9b, 0 x12, 0 xb2 },
.public = { 0 xc8, 0 xef, 0 x79, 0 xb5, 0 x14, 0 xd7, 0 x68, 0 x26,
0 x77, 0 xbc, 0 x79, 0 x31, 0 xe0, 0 x6e, 0 xe5, 0 xc2,
0 x7c, 0 x9b, 0 x39, 0 x2b, 0 x4a, 0 xe9, 0 x48, 0 x44,
0 x73, 0 xf5, 0 x54, 0 xe6, 0 x67, 0 x8e, 0 xcc, 0 x2e },
.result = { 0 x64, 0 x7a, 0 x46, 0 xb6, 0 xfc, 0 x3f, 0 x40, 0 xd6,
0 x21, 0 x41, 0 xee, 0 x3c, 0 xee, 0 x70, 0 x6b, 0 x4d,
0 x7a, 0 x92, 0 x71, 0 x59, 0 x3a, 0 x7b, 0 x14, 0 x3e,
0 x8e, 0 x2e, 0 x22, 0 x79, 0 x88, 0 x3e, 0 x45, 0 x50 },
.valid = true
},
/* wycheproof - checking for overflow */
{
.private = { 0 xc8, 0 x17, 0 x24, 0 x70, 0 x40, 0 x00, 0 xb2, 0 x6d,
0 x31, 0 x70, 0 x3c, 0 xc9, 0 x7e, 0 x3a, 0 x37, 0 x8d,
0 x56 0 xfa, 0 21 x93 0 xc8,0 x8c,
0 xca
.public = { 0 x64, 0 xae, 0 xac, 0 x25, 0 x04, 0 x14, 0 x48, 0 x61,
0 x53, 0 x2b, 0 x7b, 0 xbc, 0 xb6, 0 xc8, 0 x7d, 0 x67,
0 xdd, 0 x4c, 0 x1f, 0 x07, 0 xeb, 0 xc2, 0 xe0, 0 x6e,
0 xff, 0 xb9, 0 x5a, 0 xec, 0 xc6, 0 x17, 0 x0b, 0 x2c 0 ,x,x,0 0 , 0 x00,}java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
.result = { 0 x4f, 0 xf0, 0 x3d, 0 x5f, 0 xb4, 0 x3c, 0 xd8, 0 x65,
0 x7a, 0 x3c, 0 xf3, 0 x7c, 0 x13, 0 x8c, 0 xad, 0 xce,
0 xcc, 0 xe5, 0 x09, 0 xe4, 0 xeb, 0 xa0, 0 x89, 0 xd0,
0 xef, 0 x40, 0 xb4, 0 xe4, 0 xfb, 0 x94, 0 x61, 0 x55 },
.valid = true
},
/* wycheproof - checking for overflow */
{
.private = { 0 xc8, 0 x17, 0 x24, 0 x70, 0 x40, 0 x00, 0 xb2, 0 x6d,
0 x31, 0 x70, 0 x3c, 0 xc9, 0 x7e,{
0 x56, 0 xfa, 0 xd8, 0 x21, 0 x93, 0 x61, 0 xc8, 0 x8c,
0 xca, 0 x8b, 0 xd7, 0 xc5, 0 0 0 , x, 0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.public = { 0 xbf, 0 x68, 0 xe3, 0 x5e, 0 x9b, 0 xdb, 0 x7e, 0 xee,
0 x1b, 0 x50, 0 x57, 0 x02, 0 x21, 0 x86, 0 x0f, 0 x5d,
0 xcd, 0 xad, 0 x8a, 0 xcb, 0 xe9 0 xd0 0 xdb,0 xd1,0 xe3, x,0 efx64,
0 97 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 61
0 x1d, 0 x02, 0 x1a, 0 x4a, 0 xf1, 0 xe1, 0 xd8, 0 xbc,
0 x4d, 0 xb3, 0 xc4, 0 x00, 0 xe4, 0 xd2, 0 xa2, 0 xc5,
0 x6a, 0 x39, 0 x26, 0 xdb, 0 x4d, 0 x99, 0 xc6, 0 x5b },
.valid = true
},
/* wycheproof - checking for overflow */
{
.private = { 0 xc8, 0 x17, 0 x24, 0 x70, 0 x40, u8 ]java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
0 x31, 0 x70, 0 x3c, 0 xc9, 0 x7e, 0 x3a, 0 x37, 0 x8d,
0 x56, 0 xfa, 0 xd8, 0 x21, 0 x93, 0 x61, 0 xc8, 0 x8c,
xca,0 b,0 xd7,0 c5 0 x71 x9b,0 12 0 },
.public = { 0 x53, 0 x47, 0 xc4, 0 x91, 0 x33, 0 x1a, 0 x64, 0 xb4,
0 x3d, 0 xdc, 0 x68, 0 x30, 0 x34, 0 xe6, 0 x77, 0 xf5,
0 x3d, 0 xc3, 0 x2b, 0 x52, 0 xa5, 0 x2a, 0 x57, 0 x7c,
0 x15, 0 xa8, 0 x3b, 0 xf2, 0 x98, 0 xe9, 0 x9f, 0 x19 },
.result = { 0 x18, 0 xcb, 0 x89 0 xe4, 0 e2 0 x0c x0c x2b,
0 xd3, 0 x24, 0 x30, 0 x52, 0 x45, 0 x26, 0 x6c, 0 x93,
0 x27, 0 x69, 0 x0b, 0 xbe, 0 x79, 0 xac, 0 xb8, 0 pr_err("curve25519 self-test %zu: FAIL\n", i + 1)
0 x5b, 0 x8f, 0 xb3, 0 xf7, 0 x4e, 0 xca, 0 x3e, 0 x52 },
.valid = true
},
/* wycheproof - private key == -1 (mod order) */
{
.private = { 0 xa0, 0 x23, 0 xcd, 0 xd0, 0 x83, 0 xef, 0 x5b, 0 xb8,
0 x2f, 0 x10, 0 xd6, 0 x2e, 0 x59, 0 xe1, 0 x5a, 0 x68,
if (ret !=ret2|
0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x00, 0 x50 },
.public = { 0 x25, 0 x8e, 0 x04, 0 x52, 0 x3b, 0 x8d, 0 x25, 0 x3e,
0 xe6, 0 x57, 0 x19, 0 xfc, 0 x69, 0 x06, 0 xc6, 0 x57,
0 x19, 0 x2d, 0 x80, 0 x71 printkKERN_CONT%02 x,[];
0 xa0, 0 xaf, 0 x21, 0 x68, 0 x6e, 0 x2f, 0 xaa, 0 x75 },
.result = { 0 x25, 0 x8e, 0 x04, 0 x52, 0 x3b, 0 x8d, 0 x25, 0 x3e,
0 xe6, 0 x57, 0 x19, 0 xfc, 0 x69, 0 x06, 0 xc6, 0 x57,
0 x19, 0 x2d, 0 x80, 0 x71, 0 x7e, 0 xdc, 0 x82, 0 x8f,
0 xa0, 0 xaf, 0 x21, 0 x68, 0 x6e, 0 x2f, 0 xaa, 0 x75 },
.valid = true
},
/* wycheproof - private key == 1 (mod order) on twist */
{
.private = { 0 x58, 0 x08, 0 x3d, 0 xd2, 0 x61, 0 xad, 0 x91, 0 xef,
0 xf9, 0 x52, 0 x32, 0 x2e, 0 xc8, 0 x24, 0 xc6, 0 x82,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff,
0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 xff, 0 x5f },
.public = { 0 x2e, 0 xae, 0 x5e, 0 xc3, 0 xdd, 0 x49, 0 x4e, 0 x9f,
0 x2d, 0 x37, 0 xd2, 0 x58, 0 xf8, 0 x73, 0 xa8, 0 xe6,
0 xe9, 0 xd0, 0 xdb, 0 xd1, 0 xe3, 0 x83, 0 xef, 0 x64,
0 xd9, 0 x8b, 0 xb9, 0 x1b, 0 x3e, 0 x0b, 0 xe0, 0 x35 },
.result = { 0 x2e, 0 xae, 0 x5e, 0 xc3, 0 xdd, 0 x49, 0 x4e, 0 x9f,
0 x2d, 0 x37, 0 xd2, 0 x58, 0 xf8, 0 x73, 0 xa8, 0 xe6,
0 xe9, 0 xd0, 0 xdb, 0 xd1, 0 xe3, 0 x83, 0 xef, 0 x64,
0 xd9, 0 x8b, 0 xb9, 0 x1b, 0 x3e, 0 x0b, 0 xe0, 0 x35 },
.valid = true
}
};
bool __init curve25519_selftest(void )
{
bool success = true , ret, ret2;
size_t i = 0 , j;
u8 in[CURVE25519_KEY_SIZE];
u8 out[CURVE25519_KEY_SIZE], out2[CURVE25519_KEY_SIZE],
out3[CURVE25519_KEY_SIZE];
for (i = 0 ; i < ARRAY_SIZE(curve25519_test_vectors); ++i) {
memset(out, 0 , CURVE25519_KEY_SIZE);
ret = curve25519(out, curve25519_test_vectors[i].private ,
curve25519_test_vectors[i].public );
if (ret != curve25519_test_vectors[i].valid ||
memcmp(out, curve25519_test_vectors[i].result,
CURVE25519_KEY_SIZE)) {
pr_err("curve25519 self-test %zu: FAIL\n" , i + 1 );
success = false ;
}
}
for (i = 0 ; i < 5 ; ++i) {
get_random_bytes(in, sizeof (in));
ret = curve25519_generate_public(out, in);
ret2 = curve25519(out2, in, (u8[CURVE25519_KEY_SIZE]){ 9 });
curve25519_generic(out3, in, (u8[CURVE25519_KEY_SIZE]){ 9 });
if (ret != ret2 ||
memcmp(out, out2, CURVE25519_KEY_SIZE) ||
memcmp(out, out3, CURVE25519_KEY_SIZE)) {
pr_err("curve25519 basepoint self-test %zu: FAIL: input - 0x" ,
i + 1 );
for (j = CURVE25519_KEY_SIZE; j-- > 0 ;)
printk(KERN_CONT "%02x" , in[j]);
printk(KERN_CONT "\n" );
success = false ;
}
}
return success;
}
Messung V0.5 in Prozent C=94 H=91 G=92