i2octets
unsigned char * i2octets(int n, size_t i);
memcpy(sp, i2octets(4, (int)sig->pgpbytes_len), 4);