Home | History | Annotate | Download | only in crypto

Lines Matching refs:nonce

44   // Set the IV (nonce) length.
63 bool Aes128Gcm12Encrypter::Encrypt(StringPiece nonce,
67 if (nonce.size() != kNoncePrefixSize + sizeof(QuicPacketSequenceNumber)) {
71 // Set the IV (nonce).
74 reinterpret_cast<const unsigned char*>(nonce.data())) == 0) {
127 uint8 nonce[kNoncePrefixSize + sizeof(sequence_number)];
128 COMPILE_ASSERT(sizeof(nonce) == kAESNonceSize, bad_sequence_number_size);
129 memcpy(nonce, nonce_prefix_, kNoncePrefixSize);
130 memcpy(nonce + kNoncePrefixSize, &sequence_number, sizeof(sequence_number));
131 if (!Encrypt(StringPiece(reinterpret_cast<char*>(nonce), sizeof(nonce)),