chore: improve comment about buffer

This commit is contained in:
Diego 2024-10-14 17:35:42 +02:00 committed by Richard Ramos
parent b3fb4163e8
commit e4268e61d4
No known key found for this signature in database
GPG Key ID: 7218C1B2A89A1B6D

View File

@ -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