Expand ASN.1 value buffer in C module.

Signed-off-by: Leo Ma <leoma@credosemi.com>