Home
last modified time | relevance | path

Searched refs:fixed_iv (Results 1 – 7 of 7) sorted by relevance

/external/boringssl/src/ssl/
Dssl_aead_ctx.cc59 Span<const uint8_t> mac_key, Span<const uint8_t> fixed_iv) { in Create() argument
68 expected_fixed_iv_len != fixed_iv.size() || in Create()
78 if (mac_key.size() + enc_key.size() + fixed_iv.size() > in Create()
86 fixed_iv.data(), fixed_iv.size()); in Create()
88 enc_key.size() + mac_key.size() + fixed_iv.size()); in Create()
111 assert(fixed_iv.size() <= sizeof(aead_ctx->fixed_nonce_)); in Create()
112 OPENSSL_memcpy(aead_ctx->fixed_nonce_, fixed_iv.data(), fixed_iv.size()); in Create()
113 aead_ctx->fixed_nonce_len_ = fixed_iv.size(); in Create()
121 assert(fixed_iv.size() <= aead_ctx->variable_nonce_len_); in Create()
122 aead_ctx->variable_nonce_len_ -= fixed_iv.size(); in Create()
[all …]
Dinternal.h773 Span<const uint8_t> fixed_iv);
/external/scapy/scapy/layers/tls/crypto/
Dcipher_aead.py68 def __init__(self, key=None, fixed_iv=None, nonce_explicit=None): argument
78 if fixed_iv is None:
80 fixed_iv = b"\0" * self.fixed_iv_len
90 super(_AEADCipher, self).__setattr__("fixed_iv", fixed_iv)
118 return (self.fixed_iv +
213 c = self.__class__(self.key, self.fixed_iv, self.nonce_explicit)
257 def __init__(self, key=None, fixed_iv=None, nonce_explicit=None): argument
269 if fixed_iv is None:
271 fixed_iv = b"\0" * self.fixed_iv_len
275 super(_AEADCipher_TLS13, self).__setattr__("fixed_iv", fixed_iv)
[all …]
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dssl_aead_ctx.cc59 Span<const uint8_t> mac_key, Span<const uint8_t> fixed_iv) { in Create() argument
68 expected_fixed_iv_len != fixed_iv.size() || in Create()
78 if (mac_key.size() + enc_key.size() + fixed_iv.size() > in Create()
86 fixed_iv.data(), fixed_iv.size()); in Create()
88 enc_key.size() + mac_key.size() + fixed_iv.size()); in Create()
111 assert(fixed_iv.size() <= sizeof(aead_ctx->fixed_nonce_)); in Create()
112 OPENSSL_memcpy(aead_ctx->fixed_nonce_, fixed_iv.data(), fixed_iv.size()); in Create()
113 aead_ctx->fixed_nonce_len_ = fixed_iv.size(); in Create()
121 assert(fixed_iv.size() <= aead_ctx->variable_nonce_len_); in Create()
122 aead_ctx->variable_nonce_len_ -= fixed_iv.size(); in Create()
[all …]
Dinternal.h768 Span<const uint8_t> fixed_iv);
/external/scapy/scapy/layers/tls/
Dsession.py211 fixed_iv = key_block[start:end]
216 cipher = cipher_alg(cipher_secret, fixed_iv, nonce_explicit_init)
217 self.debug_repr("aead fixed iv", fixed_iv)
/external/scapy/test/
Dtls.uts572 c = Cipher_AES_128_GCM(key=t.k, fixed_iv=t.n[:4],
580 c = Cipher_AES_256_GCM(key=t.k, fixed_iv=t.n[:4],
638 c = Cipher_AES_256_CCM(key=t.k, fixed_iv=t.n[:4],
715 c = Cipher_CHACHA20_POLY1305_TLS13(key=t.k, fixed_iv=t.n)