mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-27 05:06:35 +00:00
improve comment about buffer
This commit is contained in:
parent
67462496ec
commit
2cc5b4315f
@ -84,7 +84,8 @@ proc generateSignedKey(
|
||||
const extValueSize = 256 # Buffer size for ASN.1 encoding
|
||||
var
|
||||
extValue: array[extValueSize, byte]
|
||||
extPtr: ptr byte = addr extValue[extValueSize - 1] # Start at the end of the buffer
|
||||
extPtr: ptr byte = addr extValue[extValueSize - 1]
|
||||
# Start at the end of the buffer as mbedtls_asn1_write_octet_string works backwards in data buffer.
|
||||
startPtr: ptr byte = addr extValue[0]
|
||||
len = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user