1 /* 2 * Automatically generated by asn1_compiler. Do not edit 3 * 4 * ASN.1 parser for rsapubkey 5 */ 6 #include <linux/asn1_ber_bytecode.h> 7 #include "rsapubkey.asn1.h" 8 9 enum rsapubkey_actions { 10 ACT_rsa_get_e = 0, 11 ACT_rsa_get_n = 1, 12 NR__rsapubkey_actions = 2 13 }; 14 15 static const asn1_action_t rsapubkey_action_table[NR__rsapubkey_actions] = { 16 [ 0] = rsa_get_e, 17 [ 1] = rsa_get_n, 18 }; 19 20 static const unsigned char rsapubkey_machine[] = { 21 // RsaPubKey 22 [ 0] = ASN1_OP_MATCH, 23 [ 1] = _tag(UNIV, CONS, SEQ), 24 [ 2] = ASN1_OP_MATCH_ACT, // n 25 [ 3] = _tag(UNIV, PRIM, INT), 26 [ 4] = _action(ACT_rsa_get_n), 27 [ 5] = ASN1_OP_MATCH_ACT, // e 28 [ 6] = _tag(UNIV, PRIM, INT), 29 [ 7] = _action(ACT_rsa_get_e), 30 [ 8] = ASN1_OP_END_SEQ, 31 [ 9] = ASN1_OP_COMPLETE, 32 }; 33 34 const struct asn1_decoder rsapubkey_decoder = { 35 .machine = rsapubkey_machine, 36 .machlen = sizeof(rsapubkey_machine), 37 .actions = rsapubkey_action_table, 38 }; 39