Trait GoogleCloudKmsK256

Source
pub trait GoogleCloudKmsK256: Send + Sync {
    // Required methods
    fn get_pem_public_key<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_digest<'life0, 'async_trait>(
        &'life0 self,
        digest: [u8; 32],
    ) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_pem_public_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetches the PEM-encoded public key from Google Cloud KMS.

Source

fn sign_digest<'life0, 'async_trait>( &'life0 self, digest: [u8; 32], ) -> Pin<Box<dyn Future<Output = GoogleCloudKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Signs a digest using ECDSA_SHA256. Returns DER-encoded signature.

Implementors§