Changeset View
Changeset View
Standalone View
Standalone View
cipher/sha512.c
Show First 20 Lines • Show All 937 Lines • ▼ Show 20 Lines | |||||
static gcry_md_oid_spec_t oid_spec_sha384[] = | static gcry_md_oid_spec_t oid_spec_sha384[] = | ||||
{ | { | ||||
{ "2.16.840.1.101.3.4.2.2" }, | { "2.16.840.1.101.3.4.2.2" }, | ||||
/* PKCS#1 sha384WithRSAEncryption */ | /* PKCS#1 sha384WithRSAEncryption */ | ||||
{ "1.2.840.113549.1.1.12" }, | { "1.2.840.113549.1.1.12" }, | ||||
/* SHA384WithECDSA */ | |||||
{ "1.2.840.10045.4.3.3" }, | |||||
{ NULL }, | { NULL }, | ||||
}; | }; | ||||
gcry_md_spec_t _gcry_digest_spec_sha384 = | gcry_md_spec_t _gcry_digest_spec_sha384 = | ||||
{ | { | ||||
GCRY_MD_SHA384, {0, 1}, | GCRY_MD_SHA384, {0, 1}, | ||||
"SHA384", sha384_asn, DIM (sha384_asn), oid_spec_sha384, 48, | "SHA384", sha384_asn, DIM (sha384_asn), oid_spec_sha384, 48, | ||||
sha384_init, _gcry_md_block_write, sha512_final, sha512_read, NULL, | sha384_init, _gcry_md_block_write, sha512_final, sha512_read, NULL, | ||||
sizeof (SHA512_CONTEXT), | sizeof (SHA512_CONTEXT), | ||||
run_selftests | run_selftests | ||||
}; | }; |