clj-pgp.tags

Vars which map Cloure keywords to numeric BouncyCastle tag codes.

code->tag

(code->tag tags code)

Look up the keyword for a tag from the numeric code.

compression-algorithm-code

(compression-algorithm-code value)

Validate and coerce the argument into a compression-algorithm tag code.

compression-algorithm-tag

(compression-algorithm-tag value)

Validate and coerce the argument into a compression-algorithm tag keyword.

compression-algorithm-tags

Map of compression-algorithm tag codes.

hash-algorithm-code

(hash-algorithm-code value)

Validate and coerce the argument into a hash-algorithm tag code.

hash-algorithm-tag

(hash-algorithm-tag value)

Validate and coerce the argument into a hash-algorithm tag keyword.

hash-algorithm-tags

Map of hash-algorithm tag codes.

public-key-algorithm-code

(public-key-algorithm-code value)

Validate and coerce the argument into a public-key-algorithm tag code.

public-key-algorithm-tag

(public-key-algorithm-tag value)

Validate and coerce the argument into a public-key-algorithm tag keyword.

public-key-algorithm-tags

Map of public-key-algorithm tag codes.

symmetric-key-algorithm-code

(symmetric-key-algorithm-code value)

Validate and coerce the argument into a symmetric-key-algorithm tag code.

symmetric-key-algorithm-tag

(symmetric-key-algorithm-tag value)

Validate and coerce the argument into a symmetric-key-algorithm tag keyword.

symmetric-key-algorithm-tags

Map of symmetric-key-algorithm tag codes.

tag->code

(tag->code tag-name tags value)

Coerce a value into a numeric tag code. The argument may be a keyword or a number. If the tag map does not contain the value, an exception is thrown.