Home | History | Annotate | Download | only in crypto

Lines Matching defs:private_key

23     const StringPiece& private_key) {
34 if (private_key.size() != crypto::curve25519::kScalarBytes) {
39 memcpy(ka->private_key_, private_key.data(),
47 uint8 private_key[crypto::curve25519::kScalarBytes];
48 rand->RandBytes(private_key, sizeof(private_key));
50 // This makes |private_key| a valid scalar, as specified on
52 private_key[0] &= 248;
53 private_key[31] &= 127;
54 private_key[31] |= 64;
55 return string(reinterpret_cast<char*>(private_key), sizeof(private_key));