Searched refs:RSA1024NUMBYTES (Results 1 – 8 of 8) sorted by relevance
/external/vboot_reference/tests/ |
D | rsa_padding_test.c | 22 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 0, in TestSignatures() 28 if (RSAVerify(key, signatures[i], RSA1024NUMBYTES, 0, in TestSignatures() 41 uint8_t sig[RSA1024NUMBYTES]; in TestRSAVerify() 43 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 0, in TestRSAVerify() 45 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES - 1, 0, in TestRSAVerify() 47 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, kNumAlgorithms, in TestRSAVerify() 49 TEST_EQ(RSAVerify(key, signatures[0], RSA1024NUMBYTES, 3, in TestRSAVerify() 53 Memcpy(sig, signatures[0], RSA1024NUMBYTES); in TestRSAVerify() 55 TEST_EQ(RSAVerify(key, sig, RSA1024NUMBYTES, 0, test_message_sha1_hash), 0, in TestRSAVerify() 58 Memcpy(sig, signatures[0], RSA1024NUMBYTES); in TestRSAVerify() [all …]
|
D | rsa_utility_tests.c | 48 TEST_EQ(u, RSA1024NUMBYTES * 2 + sizeof(uint32_t) * 2, in TestUtils() 87 uint32_t key_len = RSA1024NUMBYTES << i; in TestKeyFromBuffer() 123 *buf_key_len = (RSA1024NUMBYTES << ((i + 1) & 3)) / sizeof(uint32_t); in TestKeyFromBuffer() 133 uint8_t keybuf[8 + 2 * RSA1024NUMBYTES]; in TestVerifyBinary() 138 *keybuf_len = RSA1024NUMBYTES / sizeof(uint32_t); in TestVerifyBinary() 171 uint8_t keybuf[8 + 2 * RSA1024NUMBYTES]; in TestVerifyBinaryWithDigest() 176 *keybuf_len = RSA1024NUMBYTES / sizeof(uint32_t); in TestVerifyBinaryWithDigest()
|
D | vb2_rsa_utility_tests.c | 38 uint8_t sig[RSA1024NUMBYTES]; in test_utils() 58 TEST_EQ(vb2_rsa_sig_size(VB2_SIG_RSA1024), RSA1024NUMBYTES, in test_utils() 73 RSA1024NUMBYTES * 2 + sizeof(uint32_t) * 2, in test_utils()
|
D | vb20_rsa_padding_tests.c | 47 uint8_t sig[RSA1024NUMBYTES]; in test_signatures() 80 uint8_t sig[RSA1024NUMBYTES]; in test_verify_digest() 118 sig[RSA1024NUMBYTES - 3] ^= 0x56; in test_verify_digest()
|
D | rsa_padding_test.h | 45 static const uint8_t signatures[][RSA1024NUMBYTES] = {
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | padding.c | 38 const uint8_t paddingRSA1024_SHA1[RSA1024NUMBYTES - SHA1_DIGEST_SIZE] = { 43 const uint8_t paddingRSA1024_SHA256[RSA1024NUMBYTES - SHA256_DIGEST_SIZE] = { 48 const uint8_t paddingRSA1024_SHA512[RSA1024NUMBYTES - SHA512_DIGEST_SIZE] = { 137 RSA1024NUMBYTES, 138 RSA1024NUMBYTES, 139 RSA1024NUMBYTES, 167 RSA1024NUMBYTES - SHA1_DIGEST_SIZE, 168 RSA1024NUMBYTES - SHA256_DIGEST_SIZE, 169 RSA1024NUMBYTES - SHA512_DIGEST_SIZE,
|
D | rsa_utility.c | 61 if (RSA1024NUMBYTES != key_len && in RSAPublicKeyFromBuf()
|
/external/vboot_reference/firmware/lib/cryptolib/include/ |
D | rsa.h | 15 #define RSA1024NUMBYTES 128 /* 1024 bit key length */ macro 20 #define RSA1024NUMWORDS (RSA1024NUMBYTES / sizeof(uint32_t))
|