mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
RSA signature verification and SHA-1/256/512 reference implementation for verified boot.
Also contains some preliminary tests for these primitives. Review URL: http://codereview.chromium.org/553023
This commit is contained in:
27
include/padding.h
Normal file
27
include/padding.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef VBOOT_REFERENCE_PADDING_H_
|
||||
#define VBOOT_REFERENCE_PADDING_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
extern const uint8_t paddingRSA1024_SHA1[];
|
||||
extern const uint8_t paddingRSA1024_SHA256[];
|
||||
extern const uint8_t paddingRSA1024_SHA512[];
|
||||
extern const uint8_t paddingRSA2048_SHA1[];
|
||||
extern const uint8_t paddingRSA2048_SHA256[];
|
||||
extern const uint8_t paddingRSA2048_SHA512[];
|
||||
extern const uint8_t paddingRSA4096_SHA1[];
|
||||
extern const uint8_t paddingRSA4096_SHA256[];
|
||||
extern const uint8_t paddingRSA4096_SHA512[];
|
||||
extern const uint8_t paddingRSA8192_SHA1[];
|
||||
extern const uint8_t paddingRSA8192_SHA256[];
|
||||
extern const uint8_t paddingRSA8192_SHA512[];
|
||||
|
||||
extern const int kNumAlgorithms;
|
||||
|
||||
extern const int siglen_map[];
|
||||
extern const uint8_t* padding_map[];
|
||||
extern const int padding_size_map[];
|
||||
extern const int hash_blocksize_map[];
|
||||
extern const char* algo_strings[];
|
||||
|
||||
#endif /* VBOOT_REFERENCE_PADDING_H_ */
|
||||
Reference in New Issue
Block a user