src/crypto/p224.cc
// Get224Bits reads 7 words from in and scatters their contents in
// little-endian form into 8 words at out, 28 bits per output word.
Get224Bits reads 7 words from in and scatters their contents in
little-endian form into 8 words at out, 28 bits per output word.
Get224Bits reads 7 words from in and scatters their contents in little - endian form into 8 words at out 28 bits per output word .
void Get224Bits(uint32_t* out, const uint32_t* in) {
  out[0] = NetToHost32(in[6]) & kBottom28Bits;
  out[1] = ((NetToHost32(in[5]) << 4) |
            (NetToHost32(in[6]) >> 28)) & kBottom28Bits;
  out[2] = ((NetToHost32(in[4]) << 8) |
            (NetToHost32(in[5]) >> 24)) & kBottom28Bits;
  out[3] = ((NetToHost32(in[3]) << 12) |
            (NetToHost32(in[4]) >> 20)) & kBottom28Bits;
  out[4] = ((NetToHost32(in[2]) << 16) |
            (NetToHost32(in[3]) >> 16)) & kBottom28Bits;
  out[5] = ((NetToHost32(in[1]) << 20) |
            (NetToHost32(in[2]) >> 12)) & kBottom28Bits;
  out[6] = ((NetToHost32(in[0]) << 24) |
            (NetToHost32(in[1]) >> 8)) & kBottom28Bits;
  out[7] = (NetToHost32(in[0]) >> 4) & kBottom28Bits;
}
void Get224Bits ( uint32_t * out , const uint32_t * in ) { out [ 0 ] = NetToHost32 ( in [ 6 ] ) & kBottom28Bits ; out [ 1 ] = ( ( NetToHost32 ( in [ 5 ] ) << 4 ) | ( NetToHost32 ( in [ 6 ] ) >> 28 ) ) & kBottom28Bits ; out [ 2 ] = ( ( NetToHost32 ( in [ 4 ] ) << 8 ) | ( NetToHost32 ( in [ 5 ] ) >> 24 ) ) & kBottom28Bits ; out [ 3 ] = ( ( NetToHost32 ( in [ 3 ] ) << 12 ) | ( NetToHost32 ( in [ 4 ] ) >> 20 ) ) & kBottom28Bits ; out [ 4 ] = ( ( NetToHost32 ( in [ 2 ] ) << 16 ) | ( NetToHost32 ( in [ 3 ] ) >> 16 ) ) & kBottom28Bits ; out [ 5 ] = ( ( NetToHost32 ( in [ 1 ] ) << 20 ) | ( NetToHost32 ( in [ 2 ] ) >> 12 ) ) & kBottom28Bits ; out [ 6 ] = ( ( NetToHost32 ( in [ 0 ] ) << 24 ) | ( NetToHost32 ( in [ 1 ] ) >> 8 ) ) & kBottom28Bits ; out [ 7 ] = ( NetToHost32 ( in [ 0 ] ) >> 4 ) & kBottom28Bits ; }
Get224Bits reads 7 words from in and scatters their contents in
little-endian form into 8 words at out, 28 bits per output word.
Get224Bits reads 7 words from in and scatters their contents in little - endian form into 8 words at out 28 bits per output word .