mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-28 04:20:39 +00:00
chore: improve comment about buffer
This commit is contained in:
parent
b3fb4163e8
commit
e4268e61d4
@ -84,7 +84,8 @@ proc generateSignedKey(
|
|||||||
const extValueSize = 256 # Buffer size for ASN.1 encoding
|
const extValueSize = 256 # Buffer size for ASN.1 encoding
|
||||||
var
|
var
|
||||||
extValue: array[extValueSize, byte]
|
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]
|
startPtr: ptr byte = addr extValue[0]
|
||||||
len = 0
|
len = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user