Skip to content

Commit

Permalink
nrf52832 pin layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wfreezeDev committed Aug 25, 2021
1 parent 206a2e7 commit f9149cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenHaystack/OpenHaystack/BoringSSL/BoringSSL.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ + (EC_POINT *_Nullable)loadEllipticCurvePublicBytesWith:(EC_GROUP *)group andPoi
// Public key will be stored in point
int res = EC_POINT_oct2point(group, point, pointBytes.bytes, pointBytes.length, ctx);
[self printPoint:point withGroup:group];

// Free the big numbers
BN_CTX_free(ctx);

Expand Down Expand Up @@ -117,9 +117,7 @@ + (EC_KEY *_Nullable)deriveEllipticCurvePrivateKey:(NSData *)privateKeyData grou

// Free
BN_CTX_free(ctx);




return key;
}

Expand Down Expand Up @@ -159,6 +157,8 @@ + (NSData *_Nullable)generateNewPrivateKey {
NSMutableData *privateKeyBytes = [[NSMutableData alloc] initWithLength:keySize];

size_t size = BN_bn2bin(privateKey, privateKeyBytes.mutableBytes);



EC_KEY_free(key);
if (size == 0) {
Expand Down
Binary file added Resources/Pins-NRF52832.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f9149cd

Please sign in to comment.