Codebase list libcryptx-perl / d1a1d8d
ltc SHA3 blocksize fix Karel Miko 6 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1717 "sha3-224", /* name of hash */
1818 17, /* internal ID */
1919 28, /* Size of digest in octets */
20 128, /* Input block size in octets */
20 144, /* Input block size in octets */
2121 { 2,16,840,1,101,3,4,2,7 }, /* ASN.1 OID */
2222 9, /* Length OID */
2323 &sha3_224_init,
3232 "sha3-256", /* name of hash */
3333 18, /* internal ID */
3434 32, /* Size of digest in octets */
35 128, /* Input block size in octets */
35 136, /* Input block size in octets */
3636 { 2,16,840,1,101,3,4,2,8 }, /* ASN.1 OID */
3737 9, /* Length OID */
3838 &sha3_256_init,
4747 "sha3-384", /* name of hash */
4848 19, /* internal ID */
4949 48, /* Size of digest in octets */
50 128, /* Input block size in octets */
50 104, /* Input block size in octets */
5151 { 2,16,840,1,101,3,4,2,9 }, /* ASN.1 OID */
5252 9, /* Length OID */
5353 &sha3_384_init,
6262 "sha3-512", /* name of hash */
6363 20, /* internal ID */
6464 64, /* Size of digest in octets */
65 128, /* Input block size in octets */
65 72, /* Input block size in octets */
6666 { 2,16,840,1,101,3,4,2,10 }, /* ASN.1 OID */
6767 9, /* Length OID */
6868 &sha3_512_init,
2929 #define SCRYPT "1.18.0"
3030
3131 /* max size of either a cipher/hash block or symmetric key [largest of the two] */
32 #define MAXBLOCKSIZE 128
32 #define MAXBLOCKSIZE 144
3333
3434 /* descriptor table size */
3535 #define TAB_SIZE 32