Lines Matching refs:SHA

3  * Computes SHA1 and SHA2 hashes of arbitrary data. SHA hashes are 20 to 64 byte
4 * quantities (depending on the SHA algorithm) that are like a checksum or CRC,
24 * SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256.
46 * $(LI $(LINK2 http://en.wikipedia.org/wiki/Secure_Hash_Algorithm, Wikipedia article about SHA))
189 * Template API SHA1/SHA2 implementation. Supports: SHA-1, SHA-224, SHA-256,
190 * SHA-384, SHA-512, SHA-512/224 and SHA-512/256.
198 struct SHA(uint hashBlockSize, uint digestSize)
203 "Invalid SHA blockSize, must be 512 or 1024");
205 "Invalid SHA digestSize, must be 224, 256, 384 or 512");
207 "Invalid SHA digestSize for a blockSize of 512. The digestSize must be 160, 224 or 256.");
209 "Invalid SHA digestSize for a blockSize of 1024. The digestSize must be 224, 256, 384 or 512.");
211 static if (digestSize == 160) /* SHA-1 */
237 else static if (blockSize == 512) /* SHA-224, SHA-256 */
239 else static if (blockSize == 1024) /* SHA-384, SHA-512, SHA-512/224, SHA-512/256 */
246 static if (blockSize == 512 && digestSize == 160) /* SHA-1 */
251 else static if (blockSize == 512 && digestSize == 224) /* SHA-224 */
258 else static if (blockSize == 512 && digestSize == 256) /* SHA-256 */
265 else static if (blockSize == 1024 && digestSize == 224) /* SHA-512/224 */
274 else static if (blockSize == 1024 && digestSize == 256) /* SHA-512/256 */
283 else static if (blockSize == 1024 && digestSize == 384) /* SHA-384 */
292 else static if (blockSize == 1024 && digestSize == 512) /* SHA-512 */
373 /* SHA-1 */
376 /* SHA-224, SHA-256 */
382 /* SHA-384, SHA-512, SHA-512/224, SHA-512/256 */
674 * SHA initialization. Begins an SHA1/SHA2 operation.
677 * For this SHA Digest implementation calling start after default construction
754 * Returns the finished SHA hash. This also calls $(LREF start) to
823 alias SHA1 = SHA!(512, 160); /// SHA alias for SHA-1, hash is ubyte[20]
824 alias SHA224 = SHA!(512, 224); /// SHA alias for SHA-224, hash is ubyte[28]
825 alias SHA256 = SHA!(512, 256); /// SHA alias for SHA-256, hash is ubyte[32]
826 alias SHA384 = SHA!(1024, 384); /// SHA alias for SHA-384, hash is ubyte[48]
827 alias SHA512 = SHA!(1024, 512); /// SHA alias for SHA-512, hash is ubyte[64]
828 alias SHA512_224 = SHA!(1024, 224); /// SHA alias for SHA-512/224, hash is ubyte[28]
829 alias SHA512_256 = SHA!(1024, 256); /// SHA alias for SHA-512/256, hash is ubyte[32]
839 //The same, but using SHA-224
1126 * SHA implementation.
1224 //The same, but using SHA-224