mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
The current stable version of OpenSSL(0.9.8d) does not support RSA signature with SHA-256 and SHA-512 message digests. This utility outputs the hash of file data in a format suitable for use with the "openssl" command-line tool fir generating RSA signatures. Also modified the tests to use this to generate RSA signature rather than "openssl pkeyutl" which is not supported on current stable version of OpenSSL. Review URL: http://codereview.chromium.org/552227
31 lines
1013 B
C
31 lines
1013 B
C
#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 digestinfo_size_map[];
|
|
extern const int siglen_map[];
|
|
extern const uint8_t* padding_map[];
|
|
extern const int padding_size_map[];
|
|
extern const int hash_size_map[];
|
|
extern const int hash_blocksize_map[];
|
|
extern const uint8_t* hash_digestinfo_map[];
|
|
extern const char* algo_strings[];
|
|
|
|
#endif /* VBOOT_REFERENCE_PADDING_H_ */
|