1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
12 static const oid_st rsa_oid = {
13 { 1, 2, 840, 113549, 1, 1, 1 },
17 static const oid_st dsa_oid = {
18 { 1, 2, 840, 10040, 4, 1 },
23 Returns the OID of the public key algorithm.
24 @return CRYPT_OK if valid
26 int pk_get_oid(int pk, oid_st *st)
30 XMEMCPY(st, &rsa_oid, sizeof(*st));
33 XMEMCPY(st, &dsa_oid, sizeof(*st));
36 return CRYPT_INVALID_ARG;
42 /* ref: $Format:%D$ */
43 /* git commit: $Format:%H$ */
44 /* commit time: $Format:%ai$ */