code: function _recipientToAsn1(obj) {
    return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
      // Version
      asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
        asn1.integerToDer(obj.version).getBytes()),
      // IssuerAndSerialNumber
      asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
        // Name
        forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}),
        // Serial
        asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
          forge.util.hexToBytes(obj.serialNumber))
      ]),
      // KeyEncryptionAlgorithmIdentifier
      asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
        // Algorithm
        asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
          asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()),
        // Parameter, force NULL, only RSA supported for now.
        asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')
      ]),
      // EncryptedKey
      asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false,
        obj.encryptedContent.content)
    ]);
  }
docs: Converts a single recipient object to an ASN.1 object.
  
  @param obj the recipient object.
  
  @return the ASN.1 RecipientInfo.