pub struct ClientSessionKey { /* private fields */ }Expand description
Client-side RSA key used for PSRP session-key negotiation.
Implementations§
Source§impl ClientSessionKey
impl ClientSessionKey
Sourcepub fn public_blob_hex(&self) -> String
pub fn public_blob_hex(&self) -> String
Return the Windows PUBLICKEYBLOB representation of the public
key that PSRP expects to transport via the PublicKey message.
Layout:
BLOBHEADER (12 bytes):
bType = 0x06 (PUBLICKEYBLOB)
bVersion = 0x02
reserved = 0x0000
aiKeyAlg = 0xa400 (CALG_RSA_KEYX)
RSAPUBKEY (12 bytes):
magic = "RSA1"
bitlen = 2048
pubexp = u32 little-endian
modulus (256 bytes, little-endian)Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientSessionKey
impl RefUnwindSafe for ClientSessionKey
impl Send for ClientSessionKey
impl Sync for ClientSessionKey
impl Unpin for ClientSessionKey
impl UnsafeUnpin for ClientSessionKey
impl UnwindSafe for ClientSessionKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more