MSBLOB
in package
AbstractYes
Microsoft BLOB Formatted RSA Key Handler
Tags
Table of Contents
Constants
- CALG_RSA_KEYX = 0xa400
- RSA public key exchange algorithm
- CALG_RSA_SIGN = 0x2400
- RSA public key exchange algorithm
- PRIVATEKEYBLOB = 0x7
- Public/Private Key Pair
- PUBLICKEYBLOB = 0x6
- Public Key
- PUBLICKEYBLOBEX = 0xa
- Public Key
- RSA1 = 0x31415352
- Public Key
- RSA2 = 0x32415352
- Private Key
Methods
- load() : array<string|int, mixed>
- Break a public or private key down into its constituent components
- savePrivateKey() : string
- Convert a private key to the appropriate format.
- savePublicKey() : string
- Convert a public key to the appropriate format
Constants
CALG_RSA_KEYX
RSA public key exchange algorithm
public
mixed
CALG_RSA_KEYX
= 0xa400
Tags
CALG_RSA_SIGN
RSA public key exchange algorithm
public
mixed
CALG_RSA_SIGN
= 0x2400
Tags
PRIVATEKEYBLOB
Public/Private Key Pair
public
mixed
PRIVATEKEYBLOB
= 0x7
Tags
PUBLICKEYBLOB
Public Key
public
mixed
PUBLICKEYBLOB
= 0x6
Tags
PUBLICKEYBLOBEX
Public Key
public
mixed
PUBLICKEYBLOBEX
= 0xa
Tags
RSA1
Public Key
public
mixed
RSA1
= 0x31415352
Tags
RSA2
Private Key
public
mixed
RSA2
= 0x32415352
Tags
Methods
load()
Break a public or private key down into its constituent components
public
static load(string $key[, string $password = '' ]) : array<string|int, mixed>
Parameters
- $key : string
- $password : string = ''
-
optional
Tags
Return values
array<string|int, mixed>savePrivateKey()
Convert a private key to the appropriate format.
public
static savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array<string|int, mixed> $primes, array<string|int, mixed> $exponents, array<string|int, mixed> $coefficients[, string $password = '' ]) : string
Parameters
- $n : BigInteger
- $e : BigInteger
- $d : BigInteger
- $primes : array<string|int, mixed>
- $exponents : array<string|int, mixed>
- $coefficients : array<string|int, mixed>
- $password : string = ''
-
optional
Tags
Return values
stringsavePublicKey()
Convert a public key to the appropriate format
public
static savePublicKey(BigInteger $n, BigInteger $e) : string
Parameters
- $n : BigInteger
- $e : BigInteger