Lines Matching refs:decode
43 ltc_asn1_list decode[3];
55 /* decode to find out hash */
56 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0]));
58 if ((err = der_decode_sequence(in, inlen, decode, 1)) != CRYPT_OK) {
62 hash = find_hash_oid(hashOID, decode[0].size);
85 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE);
86 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE);
89 if ((err = der_decode_sequence(in, inlen, decode, 3)) != CRYPT_OK) {
94 if ((err = ecc_import(decode[1].data, decode[1].size, &pubkey)) != CRYPT_OK) {
112 if (decode[2].size > y) {
118 if (*outlen < decode[2].size) {
119 *outlen = decode[2].size;
125 for (x = 0; x < decode[2].size; x++) {