• Home
  • Raw
  • Download

Lines Matching full:sha

21 // The SHA family of hash functions (SHA-1 and SHA-2).
24 // SHA_CBLOCK is the block size of SHA-1.
27 // SHA_DIGEST_LENGTH is the length of a SHA-1 digest.
30 // SHA1_Init initialises |sha| and returns one.
31 OPENSSL_EXPORT int SHA1_Init(SHA_CTX *sha);
33 // SHA1_Update adds |len| bytes from |data| to |sha| and returns one.
34 OPENSSL_EXPORT int SHA1_Update(SHA_CTX *sha, const void *data, size_t len);
36 // SHA1_Final adds the final padding to |sha| and writes the resulting digest to
39 OPENSSL_EXPORT int SHA1_Final(uint8_t out[SHA_DIGEST_LENGTH], SHA_CTX *sha);
47 // SHA1_Transform is a low-level function that performs a single, SHA-1 block
48 // transformation using the state from |sha| and |SHA_CBLOCK| bytes from
50 OPENSSL_EXPORT void SHA1_Transform(SHA_CTX *sha,
63 // This PRF is based on SHA-1, a weak hash function, and should not be used
70 // SHA-224.
72 // SHA224_CBLOCK is the block size of SHA-224.
75 // SHA224_DIGEST_LENGTH is the length of a SHA-224 digest.
78 // SHA224_Init initialises |sha| and returns 1.
79 OPENSSL_EXPORT int SHA224_Init(SHA256_CTX *sha);
81 // SHA224_Update adds |len| bytes from |data| to |sha| and returns 1.
82 OPENSSL_EXPORT int SHA224_Update(SHA256_CTX *sha, const void *data, size_t len);
84 // SHA224_Final adds the final padding to |sha| and writes the resulting digest
88 SHA256_CTX *sha);
97 // SHA-256.
99 // SHA256_CBLOCK is the block size of SHA-256.
102 // SHA256_DIGEST_LENGTH is the length of a SHA-256 digest.
105 // SHA256_Init initialises |sha| and returns 1.
106 OPENSSL_EXPORT int SHA256_Init(SHA256_CTX *sha);
108 // SHA256_Update adds |len| bytes from |data| to |sha| and returns 1.
109 OPENSSL_EXPORT int SHA256_Update(SHA256_CTX *sha, const void *data, size_t len);
111 // SHA256_Final adds the final padding to |sha| and writes the resulting digest
115 SHA256_CTX *sha);
123 // SHA256_Transform is a low-level function that performs a single, SHA-256
124 // block transformation using the state from |sha| and |SHA256_CBLOCK| bytes
126 OPENSSL_EXPORT void SHA256_Transform(SHA256_CTX *sha,
130 // |SHA256_CBLOCK| bytes of data and performs SHA-256 transforms on it to update
132 // derivative of SHA-256.
137 // SHA-384.
139 // SHA384_CBLOCK is the block size of SHA-384.
142 // SHA384_DIGEST_LENGTH is the length of a SHA-384 digest.
145 // SHA384_Init initialises |sha| and returns 1.
146 OPENSSL_EXPORT int SHA384_Init(SHA512_CTX *sha);
148 // SHA384_Update adds |len| bytes from |data| to |sha| and returns 1.
149 OPENSSL_EXPORT int SHA384_Update(SHA512_CTX *sha, const void *data, size_t len);
151 // SHA384_Final adds the final padding to |sha| and writes the resulting digest
155 SHA512_CTX *sha);
164 // SHA-512.
166 // SHA512_CBLOCK is the block size of SHA-512.
169 // SHA512_DIGEST_LENGTH is the length of a SHA-512 digest.
172 // SHA512_Init initialises |sha| and returns 1.
173 OPENSSL_EXPORT int SHA512_Init(SHA512_CTX *sha);
175 // SHA512_Update adds |len| bytes from |data| to |sha| and returns 1.
176 OPENSSL_EXPORT int SHA512_Update(SHA512_CTX *sha, const void *data, size_t len);
178 // SHA512_Final adds the final padding to |sha| and writes the resulting digest
182 SHA512_CTX *sha);
190 // SHA512_Transform is a low-level function that performs a single, SHA-512
191 // block transformation using the state from |sha| and |SHA512_CBLOCK| bytes
193 OPENSSL_EXPORT void SHA512_Transform(SHA512_CTX *sha,
196 // SHA-512-256
202 // SHA512_256_Init initialises |sha| and returns 1.
203 OPENSSL_EXPORT int SHA512_256_Init(SHA512_CTX *sha);
205 // SHA512_256_Update adds |len| bytes from |data| to |sha| and returns 1.
206 OPENSSL_EXPORT int SHA512_256_Update(SHA512_CTX *sha, const void *data,
209 // SHA512_256_Final adds the final padding to |sha| and writes the resulting
213 SHA512_CTX *sha);