Home
last modified time | relevance | path

Searched refs:Private_Key (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/dports/security/libadacrypt/Ada-Crypto-Library-abc534f/src/
H A Dcrypto-asymmetric-dsa.adb151 Private_Key.P := Public_Key.P;
152 Private_Key.Q := Public_Key.Q;
164 Private_Key.G := Public_Key.G;
168 Private_Key.K := Get_Random(Private_Key.Q);
172 Public_Key.K := Pow(Private_Key.G, Private_Key.K, Private_Key.P);
189 Signature.R := Pow(Private_Key.G, K, Private_Key.P) mod Private_Key.Q;
193 Add(H, Mult(Private_Key.K, Signature.R, Private_Key.Q),
194 Private_Key.Q), Private_Key.Q);
292 P := To_Bytes(Private_Key.P);
296 To_Bytes(Private_Key.Q);
[all …]
H A Dcrypto-asymmetric-rsa.adb84 exit when Private_Key.P /= Private_Key.Q;
87 Private_Key.N := Private_Key.P * Private_Key.Q;
88 Private_Key.Phi := (Private_Key.P-1) * (Private_Key.Q-1);
106 Private_Key.D := Inverse(Public_Key.E, Private_Key.Phi);
146 Plaintext := Pow(Ciphertext, Private_Key.D, Private_Key.N);
160 P := Pow(To_Big_Unsigned(Ciphertext),Private_Key.D,Private_Key.N);
174 or Mult(Public_Key.E, Private_Key.D, Private_Key.Phi) /= Big_Unsigned_One
270 Private_Key.N := N;
271 Private_Key.D := D;
272 Private_Key.P := P;
[all …]
H A Dcrypto-asymmetric-ecdsa.adb68 Private_Key : out Private_Key_ECDSA) is
73 Private_Key.Q := Private_Key.d * Public_Key.P;
74 Public_Key.Q := Private_Key.Q;
80 Private_Key : in Private_Key_ECDSA;
99 Add(temp_H, Mult(Private_Key.d, Signature.R,
125 Private_Key : in Private_Key_ECDSA;
128 if Is_Init(ECDSA_S_Key(Private_Key)) and
130 Sign(Public_Key, Private_Key, SHA1.F_Hash(Filename), Signature);
154 Private_Key : Private_Key_ECDSA;
158 Is_Init(ECDSA_S_KEY(Private_Key)) = False then
[all …]
H A Dcrypto-asymmetric-dh.adb26 procedure Get_Private_Key(Private_Key : out DH_Number;
36 Private_Key := To_Bytes(Key);
41 function Check_Private_Key(Private_Key : in DH_Number;
44 X : constant Big_Unsigned := To_Big_Unsigned(Private_Key);
56 function Check_Public_Key(Private_Key : in DH_Number;
60 X : constant Big_Unsigned := To_Big_Unsigned(Private_Key);
75 procedure Get_Public_Key(Private_Key : in DH_Number;
80 K := Pow(Params.G, To_Big_Unsigned(Private_Key), Params.P);
86 procedure Get_Shared_Secret(Private_Key : in DH_Number;
96 K := Pow(To_Big_Unsigned(Public_Key), To_Big_Unsigned(Private_Key), Params.P);
H A Dcrypto-asymmetric-rsa.ads50 Private_Key : out Private_Key_RSA;
55 function Verify_Key_Pair(Private_Key : Private_Key_RSA;
63 function V1_5_Decrypt(Private_Key : in Private_Key_RSA;
73 function OAEP_Decrypt(Private_Key : in Private_Key_RSA;
86 procedure Get_Private_Key(Private_Key : in Private_Key_RSA;
110 Private_Key : out Private_Key_RSA);
117 Private_Key : out Private_Key_RSA);
131 procedure Decrypt(Private_Key : in Private_Key_RSA;
135 procedure Decrypt(Private_Key : in Private_Key_RSA;
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/pubkey/
H A Dpkcs8.h64 BER_encode(const Private_Key& key,
83 PEM_encode(const Private_Key& key,
103 BER_encode_encrypted_pbkdf_iter(const Private_Key& key,
125 PEM_encode_encrypted_pbkdf_iter(const Private_Key& key,
147 BER_encode_encrypted_pbkdf_msec(const Private_Key& key,
172 PEM_encode_encrypted_pbkdf_msec(const Private_Key& key,
246 BOTAN_PUBLIC_API(2,0) Private_Key* copy_key(const Private_Key& key,
257 std::unique_ptr<Private_Key> load_key(DataSource& source,
266 std::unique_ptr<Private_Key> load_key(DataSource& source,
274 std::unique_ptr<Private_Key> load_key(DataSource& source);
[all …]
H A Dpk_algs.cpp162 std::unique_ptr<Private_Key>
190 return std::unique_ptr<Private_Key>(new DH_PrivateKey(alg_id, key_bits)); in load_private_key()
200 return std::unique_ptr<Private_Key>(new McEliece_PrivateKey(key_bits)); in load_private_key()
235 return std::unique_ptr<Private_Key>(new XMSS_PrivateKey(key_bits)); in load_private_key()
263 std::unique_ptr<Private_Key>
275 return std::unique_ptr<Private_Key>(new Curve25519_PrivateKey(rng)); in create_private_key()
285 std::unique_ptr<Botan::Private_Key> pk; in create_private_key()
293 return std::unique_ptr<Private_Key>(new RSA_PrivateKey(rng, rsa_bits)); in create_private_key()
316 return std::unique_ptr<Private_Key>( in create_private_key()
324 return std::unique_ptr<Private_Key>(new Ed25519_PrivateKey(rng)); in create_private_key()
[all …]
H A Dpkcs8.cpp148 std::string PEM_encode(const Private_Key& key) in PEM_encode()
230 std::string PEM_encode(const Private_Key& key, in PEM_encode()
345 std::unique_ptr<Private_Key>
398 std::unique_ptr<Private_Key> copy_key(const Private_Key& key) in copy_key()
407 Private_Key* load_key(DataSource& source, in load_key()
418 Private_Key* load_key(DataSource& source, in load_key()
429 Private_Key* load_key(DataSource& source, in load_key()
441 Private_Key* load_key(const std::string& fsname, in load_key()
453 Private_Key* load_key(const std::string& fsname, in load_key()
467 Private_Key* load_key(const std::string& fsname, in load_key()
[all …]
/dports/security/botan2/Botan-2.18.2/src/lib/pubkey/
H A Dpkcs8.h64 BER_encode(const Private_Key& key,
83 PEM_encode(const Private_Key& key,
103 BER_encode_encrypted_pbkdf_iter(const Private_Key& key,
125 PEM_encode_encrypted_pbkdf_iter(const Private_Key& key,
147 BER_encode_encrypted_pbkdf_msec(const Private_Key& key,
172 PEM_encode_encrypted_pbkdf_msec(const Private_Key& key,
246 BOTAN_PUBLIC_API(2,0) Private_Key* copy_key(const Private_Key& key,
257 std::unique_ptr<Private_Key> load_key(DataSource& source,
266 std::unique_ptr<Private_Key> load_key(DataSource& source,
274 std::unique_ptr<Private_Key> load_key(DataSource& source);
[all …]
H A Dpk_algs.cpp162 std::unique_ptr<Private_Key>
190 return std::unique_ptr<Private_Key>(new DH_PrivateKey(alg_id, key_bits)); in load_private_key()
200 return std::unique_ptr<Private_Key>(new McEliece_PrivateKey(key_bits)); in load_private_key()
235 return std::unique_ptr<Private_Key>(new XMSS_PrivateKey(key_bits)); in load_private_key()
263 std::unique_ptr<Private_Key>
275 return std::unique_ptr<Private_Key>(new Curve25519_PrivateKey(rng)); in create_private_key()
285 std::unique_ptr<Botan::Private_Key> pk; in create_private_key()
293 return std::unique_ptr<Private_Key>(new RSA_PrivateKey(rng, rsa_bits)); in create_private_key()
316 return std::unique_ptr<Private_Key>( in create_private_key()
324 return std::unique_ptr<Private_Key>(new Ed25519_PrivateKey(rng)); in create_private_key()
[all …]
H A Dpkcs8.cpp148 std::string PEM_encode(const Private_Key& key) in PEM_encode()
230 std::string PEM_encode(const Private_Key& key, in PEM_encode()
345 std::unique_ptr<Private_Key>
398 std::unique_ptr<Private_Key> copy_key(const Private_Key& key) in copy_key()
407 Private_Key* load_key(DataSource& source, in load_key()
418 Private_Key* load_key(DataSource& source, in load_key()
429 Private_Key* load_key(DataSource& source, in load_key()
441 Private_Key* load_key(const std::string& fsname, in load_key()
453 Private_Key* load_key(const std::string& fsname, in load_key()
467 Private_Key* load_key(const std::string& fsname, in load_key()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/pubkey/
H A Dpkcs8.h64 BER_encode(const Private_Key& key,
83 PEM_encode(const Private_Key& key,
103 BER_encode_encrypted_pbkdf_iter(const Private_Key& key,
125 PEM_encode_encrypted_pbkdf_iter(const Private_Key& key,
147 BER_encode_encrypted_pbkdf_msec(const Private_Key& key,
172 PEM_encode_encrypted_pbkdf_msec(const Private_Key& key,
246 BOTAN_PUBLIC_API(2,0) Private_Key* copy_key(const Private_Key& key,
257 std::unique_ptr<Private_Key> load_key(DataSource& source,
266 std::unique_ptr<Private_Key> load_key(DataSource& source,
274 std::unique_ptr<Private_Key> load_key(DataSource& source);
[all …]
H A Dpk_algs.cpp162 std::unique_ptr<Private_Key>
190 return std::unique_ptr<Private_Key>(new DH_PrivateKey(alg_id, key_bits)); in load_private_key()
200 return std::unique_ptr<Private_Key>(new McEliece_PrivateKey(key_bits)); in load_private_key()
235 return std::unique_ptr<Private_Key>(new XMSS_PrivateKey(key_bits)); in load_private_key()
263 std::unique_ptr<Private_Key>
275 return std::unique_ptr<Private_Key>(new Curve25519_PrivateKey(rng)); in create_private_key()
285 std::unique_ptr<Botan::Private_Key> pk; in create_private_key()
293 return std::unique_ptr<Private_Key>(new RSA_PrivateKey(rng, rsa_bits)); in create_private_key()
316 return std::unique_ptr<Private_Key>( in create_private_key()
324 return std::unique_ptr<Private_Key>(new Ed25519_PrivateKey(rng)); in create_private_key()
[all …]
H A Dpkcs8.cpp148 std::string PEM_encode(const Private_Key& key) in PEM_encode()
230 std::string PEM_encode(const Private_Key& key, in PEM_encode()
345 std::unique_ptr<Private_Key>
398 std::unique_ptr<Private_Key> copy_key(const Private_Key& key) in copy_key()
407 Private_Key* load_key(DataSource& source, in load_key()
418 Private_Key* load_key(DataSource& source, in load_key()
429 Private_Key* load_key(DataSource& source, in load_key()
441 Private_Key* load_key(const std::string& fsname, in load_key()
453 Private_Key* load_key(const std::string& fsname, in load_key()
467 Private_Key* load_key(const std::string& fsname, in load_key()
[all …]
/dports/security/botan110/Botan-1.10.17/src/pubkey/
H A Dpkcs8.h35 BOTAN_DLL SecureVector<byte> BER_encode(const Private_Key& key);
42 BOTAN_DLL std::string PEM_encode(const Private_Key& key);
54 BOTAN_DLL SecureVector<byte> BER_encode(const Private_Key& key,
70 BOTAN_DLL std::string PEM_encode(const Private_Key& key,
85 inline void encode(const Private_Key& key,
109 inline void encrypt_key(const Private_Key& key,
129 BOTAN_DLL Private_Key* load_key(DataSource& source,
140 BOTAN_DLL Private_Key* load_key(DataSource& source,
151 BOTAN_DLL Private_Key* load_key(const std::string& filename,
162 BOTAN_DLL Private_Key* load_key(const std::string& filename,
[all …]
/dports/security/libadacrypt/Ada-Crypto-Library-abc534f/test/
H A Dtest-ecdsa.adb16 Private_Key : Private_Key_ECDSA; variable
54 Gen_Private_Key(Public_Key, Private_Key);
55 Sign_File("hash_message2.txt", Public_Key, Private_Key, Signature);
58 Assert(Verify_Key_Pair(Private_Key, Public_Key), "Verifying Key Pair with ECDSA failed.");
70 Gen_Private_Key(Public_Key, Private_Key);
72 Sign_File("hash_message5.txt", Public_Key, Private_Key, Signature);
75 Assert(Verify_Key_Pair(Private_Key, Public_Key), "Verifying Key Pair with ECDSA failed.");
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/lang/gcc9/gcc-9.4.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/devel/avr-gcc/gcc-10.2.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/lang/gcc10-devel/gcc-10-20211008/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/ada/libgnat/
H A Da-cofuse.ads263 type Private_Key is private; type
265 function Iter_First (Container : Set) return Private_Key with
270 Key : Private_Key) return Boolean
276 Key : Private_Key) return Private_Key
283 Key : Private_Key) return Element_Type
307 type Private_Key is new Count_Type; type
309 function Iter_First (Container : Set) return Private_Key is (1);
313 Key : Private_Key) return Boolean
319 Key : Private_Key) return Private_Key
321 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]
/dports/devel/riscv32-unknown-elf-gcc/gcc-8.4.0/gcc/ada/libgnat/
H A Da-cofuse.ads256 type Private_Key is private; type
258 function Iter_First (Container : Set) return Private_Key with
263 Key : Private_Key) return Boolean
269 Key : Private_Key) return Private_Key
276 Key : Private_Key) return Element_Type
300 type Private_Key is new Count_Type; type
302 function Iter_First (Container : Set) return Private_Key is (1);
306 Key : Private_Key) return Boolean
312 Key : Private_Key) return Private_Key
314 (if Key = Private_Key'Last then 0 else Key + 1);
[all …]

12345678910>>...15