Lines Matching refs:from
59 assert.throws(() => KeyObject.from('invalid_key'), {
80 const plaintext = Buffer.from('Hello world', 'utf8');
104 // Constructing a private key from a public key should be impossible, even
105 // if the public key was derived from a private key.
164 // It should be possible to derive a public key from a private key.
243 const plaintext = Buffer.from('Hello world', 'utf8');
264 // Encrypt using a public key derived from the private key.
577 // added for the PSS parameters. This is different from an empty
779 const buffer = Buffer.from('Hello World');
788 // Exporting an "oct" JWK from a SecretKeyObject
789 const buffer = Buffer.from('Hello World');
821 const first = Buffer.from('Hello');
822 const second = Buffer.from('World');