improve comment about buffer

This commit is contained in:
Diego 2024-10-14 17:35:42 +02:00
parent 67462496ec
commit 2cc5b4315f
No known key found for this signature in database
GPG Key ID: C9DAC9BF68D1F806
1 changed files with 2 additions and 1 deletions

View File

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