Skip to main content

KeyType

Represents the type of cryptographic key.

  • Full name: \Bloock\Entity\Key\KeyType

Constants

ConstantVisibilityTypeValue
EcP256kpublic"EcP256k"
Rsa2048public"Rsa2048"
Rsa3072public"Rsa3072"
Rsa4096public"Rsa4096"
Aes128public"Aes128"
Aes256public"Aes256"
Bjjpublic"Bjj"
UNRECOGNIZEDpublic"UNRECOGNIZED"

Methods

toProto

public static toProto(string $type): int
  • This method is static.

Parameters:

ParameterTypeDescription
$typestring

fromProto

public static fromProto(int $alg): string
  • This method is static.

Parameters:

ParameterTypeDescription
$algint


Automatically generated on 2024-04-02