~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to src/lib/pubkey/cecpq1/cecpq1.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* CECPQ1 (x25519 + NewHope)
 
3
* (C) 2016 Jack Lloyd
 
4
*
 
5
* Botan is released under the Simplified BSD License (see license.txt)
 
6
*/
 
7
 
 
8
#ifndef BOTAN_CECPQ1_H_
 
9
#define BOTAN_CECPQ1_H_
 
10
 
 
11
#include <botan/secmem.h>
 
12
#include <botan/newhope.h>
 
13
 
 
14
namespace Botan {
 
15
 
 
16
class CECPQ1_key final
 
17
   {
 
18
   public:
 
19
      secure_vector<uint8_t> m_x25519;
 
20
      newhope_poly m_newhope;
 
21
   };
 
22
 
 
23
void BOTAN_PUBLIC_API(2,0) CECPQ1_offer(uint8_t* offer_message,
 
24
                            CECPQ1_key* offer_key_output,
 
25
                            RandomNumberGenerator& rng);
 
26
 
 
27
void BOTAN_PUBLIC_API(2,0) CECPQ1_accept(uint8_t* shared_key,
 
28
                             uint8_t* accept_message,
 
29
                             const uint8_t* offer_message,
 
30
                             RandomNumberGenerator& rng);
 
31
 
 
32
void BOTAN_PUBLIC_API(2,0) CECPQ1_finish(uint8_t* shared_key,
 
33
                             const CECPQ1_key& offer_key,
 
34
                             const uint8_t* accept_message);
 
35
 
 
36
}
 
37
 
 
38
#endif