OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sharedKey
(Results
1 - 5
of
5
) sorted by null
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
D2DConnectionContextV0.java
31
private final SecretKey
sharedKey
;
38
* @param
sharedKey
41
D2DConnectionContextV0(SecretKey
sharedKey
, int initialSequenceNumber) {
43
this.
sharedKey
=
sharedKey
;
49
if (
sharedKey
== null) {
56
return md.digest(
sharedKey
.getEncoded());
81
return
sharedKey
;
86
return
sharedKey
;
109
bytes.write(
sharedKey
.getEncoded())
[
all
...]
D2DCryptoOps.java
65
* @param
sharedKey
used to signcrypt the {@link Payload}
71
Payload payload, SecretKey
sharedKey
, PublicKey publicDhKey, int protocolVersion)
76
return signcryptPayload(payload,
sharedKey
, responderHello.build().toByteArray());
213
* within it. In order to decrypt, the {@code
sharedKey
} must first be derived.
218
SecretKey
sharedKey
, byte[] responderHelloAndPayload) throws SignatureException {
220
Payload payload = verifydecryptPayload(responderHelloAndPayload,
sharedKey
);
D2DConnectionContext.java
222
SecretKey
sharedKey
= new SecretKeySpec(Arrays.copyOfRange(savedSessionInfo, 5, 37), "AES");
223
return new D2DConnectionContextV0(
sharedKey
, sequenceNumber);
D2DSpakeEd25519Handshake.java
233
private byte[]
sharedKey
;
387
sharedKey
= hash(pointToByteArray(Ed25519.toAffine(sharedKeyPoint)));
407
new SecretKeySpec(
sharedKey
, "AES"))));
421
sharedKey
));
429
sharedKey
));
519
new SecretKeySpec(
sharedKey
, "AES"),
605
new SecretKeySpec(
sharedKey
, "AES"), 1 /* initialSequenceNumber */);
/external/boringssl/src/ssl/test/runner/hrss/
hrss.go
1047
func (pub *PublicKey) Encap(rand io.Reader) (ciphertext []byte,
sharedKey
[]byte) {
1068
sharedKey
= h.Sum(nil)
1070
return ciphertext,
sharedKey
1107
func (priv *PrivateKey) Decap(ciphertext []byte) (
sharedKey
[]byte, ok bool) {
1162
sharedKey
= h.Sum(nil)
1165
for i := range
sharedKey
{
1166
sharedKey
[i] = (
sharedKey
[i] & ^mask) | (hmacDigest[i] & mask)
1169
return
sharedKey
, true
Completed in 246 milliseconds