ucryptolib/test.c
static int ossl_normalize(uint8_t* inout, int in_size, int out_size) {
  if (in_size != out_size) {
    CHECK(in_size < out_size);
    memmove(inout + out_size - in_size, inout, in_size);
    for( ; in_size < out_size; ++in_size) *inout++ = 0;
  }
  return out_size;
}
// ossl *2bin functions drop leading zeros.
// Move and add leading zeros if needed.
ossl *2bin functions drop leading zeros.
Move and add leading zeros if needed.
ossl * 2bin functions drop leading zeros . Move and add leading zeros if needed .
static int ossl_normalize(uint8_t* inout, int in_size, int out_size) {
  if (in_size != out_size) {
    CHECK(in_size < out_size);
    memmove(inout + out_size - in_size, inout, in_size);
    for( ; in_size < out_size; ++in_size) *inout++ = 0;
  }
  return out_size;
}
static int ossl_normalize ( uint8_t * inout , int in_size , int out_size ) { if ( in_size != out_size ) { CHECK ( in_size < out_size ) ; memmove ( inout + out_size - in_size , inout , in_size ) ; for ( ; in_size < out_size ; ++ in_size ) * inout ++ = 0 ; } return out_size ; }
ossl *2bin functions drop leading zeros.
ossl * 2bin functions drop leading zeros .