API Reference | developer.brewmp.com API Reference | developer.brewmp.com


API Reference


Brew Release
Brew MP 1.0.2
See Also
IPubKeyUtil interface
This class just comprises the basic functions needed for working with RSA keys. It is capable of parsing RSA keys in ASN.1 format. No other key type of encoding syntax is supported.
The IPubKeyUtil_Serialize() method is not supported and will fail when called.
The hashing utility works with MD2, MD5, SHA1, SHA256, SHA384 and SHA512. The following OIDs are mapped by default:
1.2.840.113549.1.1.4 md5withRSAEncryption
1.2.840.113549.2.5 The MD5 algorithm
1.2.840.113549.1.1.2 MD2 with rsaEncryption
1.2.840.113549.2.2 The MD2 algorithm
1.2.840.113549.1.1.5 sha1withRSAEncryption
1.2.840.113549.2.7 The SHA1 algorithm
1.2.840.113549.1.1.11 sha256WithRSAEncryption
2.16.840. SHA 256
1.2.840.113549.1.1.12 sha384WithRSAEncryption
2.16.840. SHA 384
1.2.840.113549.1.1.13 sha512WithRSAEncryption
2.16.840. SHA 512

Adding OID mappings is supported but adding OID's of hashes whose corresponding HashCtx size is larger than sizeof(AEE_SHA512_CTX) will cause unexpected behavior when IPubKeyUtil_Hash is called. Example: HMAC MD2/MD5/SHA1 and so on have HashCtx size larger than AEE_SHA512_CTX, so they'll cause unexpected behavior.
Default Interface Name
Other Interfaces