Searched refs:encrypted_pb (Results 1 – 1 of 1) sorted by relevance
109 EncryptedData encrypted_pb; in EncryptData() local110 encrypted_pb.set_wrapped_key(sealed_key); in EncryptData()111 encrypted_pb.set_iv(iv); in EncryptData()112 encrypted_pb.set_encrypted_data(raw_encrypted_data); in EncryptData()113 encrypted_pb.set_mac(HmacSha512(iv + raw_encrypted_data, aes_key)); in EncryptData()114 if (!encrypted_pb.SerializeToString(encrypted_data)) { in EncryptData()124 EncryptedData encrypted_pb; in UnsealKey() local125 if (!encrypted_pb.ParseFromString(encrypted_data)) { in UnsealKey()129 *sealed_key = encrypted_pb.wrapped_key(); in UnsealKey()140 EncryptedData encrypted_pb; in DecryptData() local[all …]