Home
last modified time | relevance | path

Searched refs:To_Bytes (Results 1 – 25 of 147) sorted by relevance

123456

/dports/security/libadacrypt/Ada-Crypto-Library-abc534f/src/
H A Dcrypto-types.adb215 end To_Bytes;
273 end To_Bytes;
491 end To_Bytes;
529 end To_Bytes;
606 end To_Bytes; argument
640 end To_Bytes;
647 end To_Bytes;
655 end To_Bytes;
662 end To_Bytes;
669 end To_Bytes;
[all …]
H A Dcrypto-symmetric-mode-bps.adb61 TL := TTL xor To_Bytes(Word(I*16#10000#));
62 TR := TTR xor To_Bytes(Word(I*16#10000#));
75 TL := TTL xor To_Bytes(Word(I*16#10000#));
76 TR := TTR xor To_Bytes(Word(I*16#10000#));
108 TL := TTL xor To_Bytes(Word(I*16#10000#));
109 TR := TTR xor To_Bytes(Word(I*16#10000#));
118 TL := TTL xor To_Bytes(Word(I*16#10000#));
119 TR := TTR xor To_Bytes(Word(I*16#10000#));
154 Temp2 : constant Bytes:= To_Bytes(Temp);
164 Temp2 : constant Bytes:= To_Bytes(Temp);
[all …]
H A Dcrypto-types.ads193 function To_Bytes (X : Word) return Byte_Word; subprogspec
250 function To_Bytes(B : B_Block64) return Bytes; subprogspec
251 function To_Bytes(B : B_Block128) return Bytes; subprogspec
252 function To_Bytes(B : B_Block192) return Bytes; subprogspec
253 function To_Bytes(B : B_Block256) return Bytes; subprogspec
254 function To_Bytes(W : W_Block160) return Bytes; subprogspec
255 function To_Bytes(W : W_Block256) return Bytes; subprogspec
256 function To_Bytes(W : W_Block512) return Bytes; subprogspec
257 function To_Bytes(D : DW_Block256) return Bytes; subprogspec
258 function To_Bytes(D : DW_Block384) return Bytes; subprogspec
[all …]
H A Dcrypto-symmetric-aead_ocb3.adb100 Tmp := To_Bytes(L_Star);
108 Tmp := To_Bytes(L_Dollar);
119 Tmp := To_Bytes(A(0));
296 Tmp := To_Bytes(Offset);
306 Write(To_Bytes(Output));
309 Tmp := To_Bytes(Checksum);
795 Tmp := To_Bytes(Ktop);
928 Tmp1 :=To_Bytes(Double_S(Tmp));
992 Tmp1 :=To_Bytes(Offset);
1008 Tmp1 := To_Bytes(Checksum);
[all …]
H A Dcrypto-asymmetric-dsa.adb181 H : constant Big_Unsigned := To_Big_Unsigned(SHA1.To_Bytes(Sha1_Hash));
211 Mult(To_Big_Unsigned(SHA1.To_Bytes(Sha1_Hash)), W,Public_Key.Q);
269 P := To_Bytes(Public_Key.P);
273 := To_Bytes(Public_Key.Q);
277 := To_Bytes(Public_Key.G);
281 := To_Bytes(Public_Key.K);
292 P := To_Bytes(Private_Key.P);
296 To_Bytes(Private_Key.Q);
300 := To_Bytes(Private_Key.G);
304 := To_Bytes(Private_Key.K);
H A Dcrypto-symmetric-kdf_sha512crypt.adb167 for I in To_Bytes(Digest_B_Hash_Result)'Range loop
175 Temp_Bytes := To_Bytes(Digest_B_Hash_Result);
187 Sixtyfour_Bytes := To_Bytes(D => Digest_B_Hash_Result);
229 for I in To_Bytes(Digest_A_Hash_Result)'Range loop
230 Error_Output.Put(To_Hex(To_Bytes(Digest_A_Hash_Result)(I)));
255 for I in To_Bytes(Digest_DP_Hash_Result)'Range loop
259 Digest_DP_Hash_Result_Bytes := To_Bytes(Digest_DP_Hash_Result);
275 Sixtyfour_Bytes := To_Bytes(D => Digest_A_Hash_Result);
297 Digest_DS_Hash_Result_Bytes := To_Bytes(Digest_DS_Hash_Result);
310 Bytes_For_Rounds := To_Bytes(Digest_A_Hash_Result);
[all …]
H A Dcrypto-symmetric-aead_mcoe.adb88 Write_Plaintext(To_Bytes(Plaintext));
155 Write(To_Bytes(Ciphertext));
184 Write(To_Bytes(C2)(0..Bytelen-1)); -- second part (step 12)
210 Write_Ciphertext(To_Bytes(This.TB.Encrypt(This.Tweak, Tau)));
218 Tau => To_Bytes(Tau),
226 Write_Ciphertext(To_Bytes(This.TB.Encrypt(This.Tweak, Tau)));
232 Tau => To_Bytes(Tau),
275 Authentic := To_Bytes(M)(Bytelen..Bytes_Per_Block-1) = Tau(0..Bytes_Per_Block-Bytelen-1)
276 and To_Bytes(T)(0..Bytelen-1) = Tag(Bytes_Per_Block-Bytelen..Tag'Last);
286 Write(To_Bytes(M)(0..Bytelen-1));
[all …]
H A Dcrypto-symmetric-mac-cmac.adb38 U := Generate_Constants(C.To_Bytes(L));
39 U2 := Generate_Constants(C.To_Bytes(U));
62 M: Bytes := C.To_Bytes(Final_Message_Block);
93 M: Bytes := C.To_Bytes(Final_Message_Block);
111 Final_Message_Block: constant Bytes := C.To_Bytes(Message(Message'Last));
136 Final_Message_Block: constant Bytes := C.To_Bytes(Message(Message'Last));
H A Dcrypto-symmetric-tweakable_blockcipher_tx.adb14 Key: Bytes := To_Bytes(This.Key);
16 T: constant Bytes := BC.To_Bytes(Tweak);
28 Key: Bytes := To_Bytes(This.Key);
30 T: constant Bytes := BC.To_Bytes(Tweak);
H A Dcrypto-symmetric-kdf_pbkdf2.adb97 Temp_Bytes := To_Bytes(F_Function(Salt => Salt,
104 := To_Bytes(F_Function(Salt => Salt,
141 Salt_Bytes(Salt'Length..Salt'Length+3):= To_Bytes(Word(Round))(0..3);
163 := Crypto.Symmetric.KDF_PBKDF2.To_Bytes(Temp_Block);
185 Salt => To_Bytes(Salt),
186 Password => To_Bytes(Password),
H A Dcrypto-symmetric-aead_siv.adb64 IV := To_Block_Type(To_Bytes(IV) & Temp);
73 Byte_Array: constant Bytes := To_Bytes(B);
112 Temp := To_Bytes(Left);
114 Temp := To_Bytes(Right);
152 Write_Plaintext(To_Bytes(Plaintext));
157 Write_Plaintext(To_Bytes(Plaintext)(0..Bytes_Read-1));
304 Write_Ciphertext(To_Bytes(IV));
323 Write_Ciphertext(To_Bytes(Output));
329 Prev_Block := To_Bytes(Output);
381 Entire_Plaintext.Append(To_Bytes(Plaintext));
[all …]
H A Dcrypto-asymmetric-rsa.adb43 if N > 0 then R(R'Last-N..R'Last) := To_Bytes(X);
189 N := To_Bytes(Public_Key.N);
192 := To_Bytes(Public_Key.E);
204 N := To_Bytes(Private_Key.N);
207 := To_Bytes(Private_Key.D);
210 := To_Bytes(Private_Key.P);
213 := To_Bytes(Private_Key.Q);
214 Phi := To_Bytes(Private_Key.Phi);
457 T(1+(Hlen*C)..Hlen*(C+1)) := To_Bytes(H);
533 Ciphertext(K-Length_In_Bytes(C)..K-1) := To_Bytes(C);
[all …]
H A Dcrypto-types-nonces-nonces_mixed_2.adb9 Result : CT.Bytes := To_Bytes(B);
28 Val: constant Crypto.Types.Bytes := To_Bytes(This.Value);
43 Counter_Array : constant Crypto.Types.Bytes(0..End_of_Block) := To_Bytes(B);
60 This.IV := To_Bytes(IV)(CS..End_of_Block);
H A Dcrypto-symmetric-algorithm-blowfish.adb84 P(0 .. 3) := To_Bytes (Pieces (0));
85 P(4 .. 7) := To_Bytes (Pieces (1));
115 C(0 .. 3) := To_Bytes (Pieces (0));
116 C(4 .. 7) := To_Bytes (Pieces (1));
128 X : constant Byte_Word := To_Bytes (S);
H A Dcrypto-symmetric-kdf_scrypt.adb81 To_Bytes => To_Bytes,
112 B_Bytes(I*64..I*64+63) := To_Bytes(B_W_Blocks(I));
118 Password => To_Bytes(password),
158 J_Bytes := To_Bytes(X(X'Last));
234 Temp_Bytes_A := To_Bytes(Input(I));
285 Temp_Bytes_A := To_Bytes(Output_R(I));
H A Dcrypto-symmetric-ae_ocb.adb81 Tmp := To_Bytes(A(-1));
82 Prev_L := To_Bytes(A(0));
99 Tmp := To_Bytes(A(I));
100 Prev_L := To_Bytes(A(I-1));
245 Write(To_Bytes(Output));
317 Write_Plaintext(To_Bytes(Plaintext));
330 Write_Plaintext(To_Bytes(Plaintext));
347 Write_Plaintext(To_Bytes(Plaintext));
455 Y: constant Bytes := To_Bytes(Ciphertext);
468 C: constant Bytes := To_Bytes(Ciphertext);
[all …]
H A Dcrypto-types-base64.adb73 Result(3*I) := To_Bytes(W)(1);
74 Result(3*I+1) := To_Bytes(W)(2);
75 Result(3*I+2) := To_Bytes(W)(3);
H A Dcrypto-symmetric-kdf.adb33 This.Derive(Salt => To_Bytes(Message => Salt),
34 Password => To_Bytes(Message => Password),
H A Dcrypto-symmetric-oneway_blockcipher.adb56 function To_Bytes(B : Block) return Crypto.Types.Bytes is subprogram
59 end To_Bytes;
/dports/security/libadacrypt/Ada-Crypto-Library-abc534f/test/
H A Dtest-base64.adb38 Result : constant Base64.Base64_String := Base64.Encode_Base64( To_Bytes(Input) );
43 Assert(To_Bytes(Input) = Base64.Decode_Base64(Result),
59 Result : constant Base64.Base64_String := Encode_Base64( To_Bytes(Input) );
65 Assert(To_Bytes(Input) = Base64.Decode_Base64(Result),
81 Result : constant Base64.Base64_String := Encode_Base64(To_Bytes(Input));
86 Assert(Decoded = To_Bytes(Input), "Base64_Rest2_Test decode failed");
H A Dtest-types.adb116 O := Crypto.Types.To_Bytes(I);
137 O := Crypto.Types.To_Bytes(I);
158 O := Crypto.Types.To_Bytes(I);
179 O := Crypto.Types.To_Bytes(I);
207 O := Crypto.Types.To_Bytes(I);
209 O_W256 := Crypto.Types.To_Bytes(I_W256);
210 O2_W256 := Crypto.Types.To_Bytes(Words(I_W256));
212 O_W512 := Crypto.Types.To_Bytes(I_W512);
362 O := Crypto.Types.To_Bytes(I);
391 O1 := Crypto.Types.To_Bytes(I1);
[all …]
H A Dtest-siv.adb37 To_Bytes => To_Bytes,
129 B := To_Bytes(Message);
142 B := To_Bytes(Header_Array(Header_Index));
251 Write_Desired_Output(To_Bytes(Desired_IV));
/dports/security/libadacrypt/Ada-Crypto-Library-abc534f/test/tools/
H A De.adb54 ((To_Bytes(P_TDES_String(1..8))),
55 (To_Bytes(P_TDES_String(9..16))),
56 (To_Bytes(P_TDES_String(17..24))));
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/ada/libgnat/
H A Ds-addima.adb47 function To_Bytes is new Ada.Unchecked_Conversion (Address, Bytes); subprogram
49 Byte_Sequence : constant Bytes := To_Bytes (A);
/dports/lang/gcc6-aux/gcc-6-20180516/gcc/ada/
H A Ds-addima.adb47 function To_Bytes is new Ada.Unchecked_Conversion (Address, Bytes); subprogram
49 Byte_Sequence : constant Bytes := To_Bytes (A);

123456