code: def rsa_public_key_pkcs1_to_pkcs8(pkcs1_key):
      
      algorithm = RsaAlgorithmIdentifier()
      algorithm["rsaEncryption"] = RSA_ENCRYPTION_ASN1_OID
  
      pkcs8_key = PublicKeyInfo()
      pkcs8_key["algorithm"] = algorithm
      pkcs8_key["publicKey"] = univ.BitString.fromOctetString(pkcs1_key)
  
      return encoder.encode(pkcs8_key)
docs: Convert a PKCS1-encoded RSA private key to PKCS8.