Source release 18.1.0

This commit is contained in:
John "Juce" Bruce
2023-06-23 15:45:08 -07:00
parent 2baa7c6e2b
commit b2c35151ad
2074 changed files with 196004 additions and 427059 deletions

View File

@@ -19,6 +19,7 @@ namespace wvoec {
constexpr size_t kMaxTestRSAKeyLength = 2000; // Rough estimate.
constexpr size_t kMaxCoreProvRequest = 150; // Rough estimate.
constexpr size_t kMaxX509CertLength = 4000; // Rough estimate.
// This structure will be signed to simulate a provisioning response from the
// server.
@@ -31,6 +32,15 @@ struct RSAPrivateKeyMessage {
uint32_t nonce;
};
// This structure simulates a provisioning 4.0 response from the server.
// However, OEMCrypto doesn't need to load this response, since it doesn't have
// any secrets to be handled. It is just a dummy struct for the tests to
// compile.
struct Prov40CertMessage {
uint8_t device_certificate[kMaxX509CertLength];
uint32_t nonce;
};
// Holds an encryption key and can encrypt a provisioning message. It also can
// encrypt short buffers using CBC, such as content keys in a license.
class Encryptor {